ENH add C (bout time)
This commit is contained in:
parent
55f12e5a60
commit
909cadac02
32
etc/conf.org
32
etc/conf.org
|
@ -860,6 +860,38 @@ Flycheck syntax checkers
|
|||
(advice-add #'flycheck-default-executable-find :around
|
||||
#'nd/flycheck-find-exe-no-docker)
|
||||
#+END_SRC
|
||||
*** C
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defun nd/init-c-company ()
|
||||
"Set the company backends for anaconda mode."
|
||||
(setq-local company-backends '(company-c-headers
|
||||
company-dabbrev-code
|
||||
company-irony)))
|
||||
|
||||
;; requires clang (duh)
|
||||
(use-package flycheck-clang-analyzer
|
||||
:straight t
|
||||
:after flycheck
|
||||
:config
|
||||
(flycheck-clang-analyzer-setup))
|
||||
|
||||
;; requires cmake/llvm
|
||||
(use-package irony
|
||||
:straight t
|
||||
:hook ((irony-mode . irony-cdb-autosetup-compile-options)))
|
||||
|
||||
(use-package company-irony
|
||||
:straight t)
|
||||
|
||||
(use-package company-c-headers
|
||||
:straight t)
|
||||
|
||||
(use-package c-mode
|
||||
:after flycheck
|
||||
:hook ((c-mode . company-mode)
|
||||
(c-mode . irony-mode)
|
||||
(c-mode . nd/init-c-company)))
|
||||
#+END_SRC
|
||||
*** Python
|
||||
**** inferior shell
|
||||
:PROPERTIES:
|
||||
|
|
Loading…
Reference in New Issue