emacs/init.el

This commit is contained in:
Tom Willemsen 2012-09-02 11:29:02 +02:00
parent a9a0ef409f
commit b54569974f

View file

@ -175,7 +175,7 @@
(executable-make-buffer-file-executable-if-script-p)
(let ((dom-dir (locate-dominating-file (buffer-file-name) "Makefile")))
(when dom-dir
(shell-command (concat "make -C " dom-dir " TAGS")))))
(shell-command (concat "make -C " dom-dir " TAGS 2>&1 >/dev/null")))))
(defun oni:before-save-func ()
"Function for `before-save-hook'."
@ -965,7 +965,7 @@ for easy selection."
(setq whitespace-style '(face trailing))
(setq yas-prompt-functions '(yas-ido-prompt))
(add-hook 'after-save-hook 'oni:after-save-func)
(add-hook 'after-save-hook 'oni:after-save-func t)
(add-hook 'before-save-hook 'oni:before-save-func)
(add-hook 'c-mode-common-hook 'oni:c-mode-common-func)
(add-hook 'c-mode-hook 'oni:c-mode-func)