(Emacs)~clang-format package now uses default sys installation
This adds a dependency to the main system to provide the clang lib packages, but they should be there anyway.
This commit is contained in:
@@ -2070,13 +2070,24 @@ opposing style.
|
|||||||
(statement-cont . +)))))
|
(statement-cont . +)))))
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Clang format
|
*** Clang format
|
||||||
Clang format for when:
|
Clang format comes in built with clang, so download that before using
|
||||||
- eglot isn't working/I'm not running it
|
this.
|
||||||
- eglot format is bad
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package clang-format
|
(use-package clang-format
|
||||||
:after cc-mode)
|
:load-path "/usr/share/clang/"
|
||||||
|
:after cc-mode
|
||||||
|
:commands +code/clang-format-region-or-buffer
|
||||||
|
:general
|
||||||
|
(leader
|
||||||
|
:keymaps '(c-mode-map c++-mode-map)
|
||||||
|
"cf" #'+code/clang-format-region-or-buffer)
|
||||||
|
:config
|
||||||
|
(defun +code/clang-format-region-or-buffer ()
|
||||||
|
(interactive)
|
||||||
|
(if (mark)
|
||||||
|
(clang-format-region)
|
||||||
|
(clang-format-buffer))))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Java
|
** Java
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|||||||
Reference in New Issue
Block a user