Skip to content

Commit

Permalink
Add delete-trailing-whitespace hook
Browse files Browse the repository at this point in the history
  • Loading branch information
souvik1997 committed Jan 14, 2016
1 parent 8e3bdef commit 979ce40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.el
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@
(global-semantic-highlight-func-mode t)
(global-semantic-show-unmatched-syntax-mode t)))


;; Delete trailing whitespace
(add-hook 'before-save-hook 'delete-trailing-whitespace)

(require 'cc-mode)
(define-key c-mode-base-map (kbd "RET") 'newline-and-indent)
Expand Down

0 comments on commit 979ce40

Please sign in to comment.