ENH add C (bout time)

This commit is contained in:
Nathan Dwarshuis 2020-08-10 18:06:51 -04:00
parent 55f12e5a60
commit 909cadac02
1 changed files with 32 additions and 0 deletions

View File

@ -860,6 +860,38 @@ Flycheck syntax checkers
(advice-add #'flycheck-default-executable-find :around (advice-add #'flycheck-default-executable-find :around
#'nd/flycheck-find-exe-no-docker) #'nd/flycheck-find-exe-no-docker)
#+END_SRC #+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 *** Python
**** inferior shell **** inferior shell
:PROPERTIES: :PROPERTIES: