Add C++ configuration
This commit is contained in:
parent
8d11d25bf5
commit
6c950aca9d
1 changed files with 33 additions and 0 deletions
|
@ -1268,6 +1268,39 @@ Computing Environment".
|
|||
(add-hook 'cmake-mode-hook 'electric-pair-local-mode)
|
||||
#+END_SRC
|
||||
|
||||
** C++
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle "init/oni-cpp-init.el"
|
||||
:END:
|
||||
|
||||
#+BEGIN_SRC emacs-lisp :tangle yes
|
||||
(with-eval-after-load 'cc-mode (load "oni-cpp-init"))
|
||||
#+END_SRC
|
||||
|
||||
Enable electric pairing.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'c++-mode-hook 'electric-pair-local-mode)
|
||||
#+END_SRC
|
||||
|
||||
Enable syntax checking using flycheck.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'c++-mode-hook 'flycheck-mode)
|
||||
#+END_SRC
|
||||
|
||||
Enable completions using company-mode.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'c++-mode-hook 'company-mode)
|
||||
#+END_SRC
|
||||
|
||||
Show the right margin of any C++ file.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'c++-mode-hook 'fci-mode)
|
||||
#+END_SRC
|
||||
|
||||
* Applications
|
||||
|
||||
- [[file:init/dired-init.org][Dired]] :: The Emacs file manager. Very powerful, and I don't use it
|
||||
|
|
Loading…
Reference in a new issue