emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit efc741220f01a79813b4b1b979c4813caf829ca0
parent 8ef7bf64c1fa764c38ddf77a219010f61c2d2c06
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon,  4 May 2020 11:13:22 +0300

emacs: add Irony mode

Diffstat:
Minit.org | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/init.org b/init.org @@ -678,6 +678,34 @@ is the use-package (add-to-list 'company-backends 'company-jedi)) #+END_SRC *** C/C++ +**** Irony-mode +I use irony-mode for syntax-checking and completion for C. It can +also be used in conjunction with C++, but I personally don't need +it. You can add a hook for C++ as well in your [[file:lisp/init-local.el][personal configuration]]. + +#+BEGIN_SRC emacs-lisp :tangle no + (add-hook 'c++-mode-hook 'irony-mode) +#+END_SRC + + +This installs =irony=, =company-irony=, and =flycheck-irony=. + +#+BEGIN_SRC emacs-lisp + (use-package irony + :straight t + :hook (c-mode . irony-mode)) + + (use-package flycheck-irony + :straight t + :after (flycheck irony) + :hook (flycheck-mode . flycheck-irony-setup)) + + (use-package company-irony + :straight t + :after (company irony) + :config + (add-to-list 'company-backends 'company-irony)) +#+END_SRC *** Go For Go, we are installing - gomode :: A rewrite of Go mode for Emacs