diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2019-09-16 16:55:37 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2019-09-16 16:56:53 +0200 |
| commit | ed74bffd18ad8597507262107c14c341dbc04b15 (patch) | |
| tree | 739ab51c98f9d132a28f33c635dda8e34d2265fd /.emacs.d/init.org | |
| parent | a7a96a40351676f37cdef12fb46d5646db207dcf (diff) | |
| download | dotfiles-ed74bffd18ad8597507262107c14c341dbc04b15.tar.gz dotfiles-ed74bffd18ad8597507262107c14c341dbc04b15.zip | |
emacs: added clang-format+
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.emacs.d/init.org')
| -rw-r--r-- | .emacs.d/init.org | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.emacs.d/init.org b/.emacs.d/init.org index 12c6abb..78954ce 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -1987,6 +1987,17 @@ comments and the usage of tabs instead of spaces. (lambda () (setq indent-tabs-mode t))) #+END_SRC +The =clang-format+= package supersedes the =clang-format.el= file from the Clasp +authors and it adds all the nuts and bolts to have =clang-format= work for the +whole file automatically: + +#+BEGIN_SRC elisp +(use-package clang-format+ + :ensure t + :config + (add-hook 'c-mode-common-hook #'clang-format+-mode)) +#+END_SRC + CMake for y'all. #+BEGIN_SRC elisp |
