Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (14 sloc) 0.659 kb
(:name ppindent :type emacswiki
:description "Indents C preprocessor directives"
:features ppindent
:post-init (progn
(setq ppindent-increment 4)
(message (format "%s" (current-buffer)))
(add-hook
'c-mode-common-hook
(lambda()
(add-hook
'before-save-hook
(lambda()
(if (string-match-p "\\.[Hh][a-z]*$" buffer-file-name) (ppindent-h)
(when (string-match-p "\\.[Cc][a-z]*$" buffer-file-name) (ppindent-c)))))))))
Jump to Line
Something went wrong with that request. Please try again.