aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2019-09-16 16:55:37 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2019-09-16 16:56:53 +0200
commited74bffd18ad8597507262107c14c341dbc04b15 (patch)
tree739ab51c98f9d132a28f33c635dda8e34d2265fd /.emacs.d
parenta7a96a40351676f37cdef12fb46d5646db207dcf (diff)
downloaddotfiles-ed74bffd18ad8597507262107c14c341dbc04b15.tar.gz
dotfiles-ed74bffd18ad8597507262107c14c341dbc04b15.zip
emacs: added clang-format+
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/custom.el2
-rw-r--r--.emacs.d/init.org11
-rwxr-xr-x.emacs.d/test-emacs.sh2
3 files changed, 13 insertions, 2 deletions
diff --git a/.emacs.d/custom.el b/.emacs.d/custom.el
index 74c6150..f83bfc5 100644
--- a/.emacs.d/custom.el
+++ b/.emacs.d/custom.el
@@ -15,7 +15,7 @@
'(markdown-command "/usr/bin/markdown-calibre")
'(package-selected-packages
(quote
- (keycast gif-screencast py-autopep8 elpy inf-ruby move-text git-timemachine debbugs async-await request emojify auctex diminish bats-mode bool-flip salt-mode flycheck-rust rust-playground rust-mode vue-mode coffee-mode json-reformat erc-hl-nicks emoji-cheat-sheet-plus helm-circe htmlize cmake-mode websocket markdown-mode go-mode magit evil-leader evil helm projectile org-eldoc evil-commentary yasnippet yaml-mode which-key web-mode wc-mode use-package terraform-mode smart-tabs-mode slim-mode scss-mode rainbow-delimiters php-mode org-evil olivetti mu4e-alert mmm-jinja2 markdown-preview-mode helm-projectile helm-ag go-eldoc go-add-tags flycheck evil-surround evil-org evil-numbers evil-mu4e evil-magit evil-args dockerfile-mode disable-mouse default-text-scale crux cmake-font-lock ag))))
+ (clang-format+ keycast gif-screencast py-autopep8 elpy inf-ruby move-text git-timemachine debbugs async-await request emojify auctex diminish bats-mode bool-flip salt-mode flycheck-rust rust-playground rust-mode vue-mode coffee-mode json-reformat erc-hl-nicks emoji-cheat-sheet-plus helm-circe htmlize cmake-mode websocket markdown-mode go-mode magit evil-leader evil helm projectile org-eldoc evil-commentary yasnippet yaml-mode which-key web-mode wc-mode use-package terraform-mode smart-tabs-mode slim-mode scss-mode rainbow-delimiters php-mode org-evil olivetti mu4e-alert mmm-jinja2 markdown-preview-mode helm-projectile helm-ag go-eldoc go-add-tags flycheck evil-surround evil-org evil-numbers evil-mu4e evil-magit evil-args dockerfile-mode disable-mouse default-text-scale crux cmake-font-lock ag))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
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
diff --git a/.emacs.d/test-emacs.sh b/.emacs.d/test-emacs.sh
index 14e47da..37e0c75 100755
--- a/.emacs.d/test-emacs.sh
+++ b/.emacs.d/test-emacs.sh
@@ -22,7 +22,7 @@ for i in . lisp; do
cd "$i"
# shellcheck disable=SC2010
# shellcheck disable=SC2035
- files="$(ls *.el | grep -v 'custom.el' | grep -v 'lisp-autoloads.el' | grep -v '.emacs.d-autoloads.el' | grep -v 'soria-theme.el' | xargs)"
+ files="$(ls *.el | grep -v 'custom.el' | grep -v 'abbrevs.el' | grep -v 'lisp-autoloads.el' | grep -v '.emacs.d-autoloads.el' | grep -v 'soria-theme.el' | xargs)"
# shellcheck disable=SC2086
${EMACS:=emacs} -Q --batch ${LOAD_PATH} -l elisp-lint.el -f elisp-lint-files-batch $files