Skip to content

Commit

Permalink
emacs: Add settings to call clang-format for Mesos.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffaco committed Mar 1, 2018
1 parent 00e2e31 commit 73c118f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nix/emacs/emacs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@
'(delete-selection-mode nil nil (delsel))
'(global-font-lock-mode t nil (font-lock))
'(scroll-bar-mode (quote right))
'(show-paren-mode t nil (paren))
'(transient-mark-mode t))
'(show-paren-mode t nil (paren)))

(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)

(transient-mark-mode 1)

(require 'cc-mode)
(add-hook 'c-mode-common-hook
'(lambda()
Expand Down Expand Up @@ -113,7 +114,7 @@

;; Support for Mesos (Clang formatting rules)
(load "/opt/mesos-format/2017-11-17/share/clang/clang-format.el")
(global-set-key [C-M-tab] 'clang-format-region)
(global-set-key (kbd "C-c m") 'clang-format-region)

;;
;; Query-replace - inserting newline:
Expand Down

0 comments on commit 73c118f

Please sign in to comment.