mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-28 05:27:06 -05:00
Add rmsbolt, tweak company-backends, fix company web-mode
This commit is contained in:
parent
a598e669b4
commit
f3d277d3ed
@ -596,15 +596,20 @@ company-quickhelp shows documentation popups
|
|||||||
when idling on a completion candidate.
|
when idling on a completion candidate.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package company
|
(use-package company
|
||||||
:preface
|
:init
|
||||||
(defun foltz-company-backend-with-yas (backend)
|
(defun foltz-company-backend-with-yas (backend)
|
||||||
(append (list backend)
|
(if (and (listp backend) (member 'company-yasnippet backend))
|
||||||
'(:with company-yasnippet)))
|
|
||||||
(defun foltz-add-company-backend (backend)
|
|
||||||
(if (member (foltz-company-backend-with-yas backend) company-backends)
|
|
||||||
backend
|
backend
|
||||||
(add-to-list 'company-backends
|
(append
|
||||||
(foltz-company-backend-with-yas backend))))
|
(if (consp backend)
|
||||||
|
backend
|
||||||
|
(list backend))
|
||||||
|
'(:with company-yasnippet))))
|
||||||
|
(defun foltz-add-company-backend (backend)
|
||||||
|
(let ((backend-with-yas (foltz-company-backend-with-yas backend)))
|
||||||
|
(if (member backend-with-yas company-backends)
|
||||||
|
backend
|
||||||
|
(add-to-list 'company-backends backend-with-yas))))
|
||||||
:hook (prog-mode . company-mode)
|
:hook (prog-mode . company-mode)
|
||||||
:hook (cdlatex-mode . company-mode)
|
:hook (cdlatex-mode . company-mode)
|
||||||
:general
|
:general
|
||||||
@ -653,7 +658,8 @@ Built into emacs since 24.1
|
|||||||
("False" . #x1d53d)))))
|
("False" . #x1d53d)))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Debugging
|
** Debugging and Disassembly
|
||||||
|
*** Realgud
|
||||||
[[https://github.com/realgud/realgud][Realgud]] is a modular frontend for many debuggers
|
[[https://github.com/realgud/realgud][Realgud]] is a modular frontend for many debuggers
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package realgud
|
(use-package realgud
|
||||||
@ -664,7 +670,14 @@ Built into emacs since 24.1
|
|||||||
realgud:pdb
|
realgud:pdb
|
||||||
realgud:trepan3k))
|
realgud:trepan3k))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
*** RMSBolt
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package rmsbolt
|
||||||
|
:pin melpa
|
||||||
|
:commands
|
||||||
|
(rmsbolt-starter
|
||||||
|
rmsbolt-mode))
|
||||||
|
#+END_SRC
|
||||||
** Syntax checking
|
** Syntax checking
|
||||||
*** Flycheck
|
*** Flycheck
|
||||||
Flycheck does syntax highlighting in a few languages
|
Flycheck does syntax highlighting in a few languages
|
||||||
@ -793,7 +806,7 @@ Company integration is done with company-web
|
|||||||
(use-package company-web
|
(use-package company-web
|
||||||
:init
|
:init
|
||||||
(defun foltz-add-company-web-backend ()
|
(defun foltz-add-company-web-backend ()
|
||||||
(foltz-company-add-backend 'company-web))
|
(foltz-add-company-backend 'company-web))
|
||||||
:hook (web-mode . foltz-add-company-web-backend))
|
:hook (web-mode . foltz-add-company-web-backend))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user