From bdf984607ec876f1e124fbd2806d382bc084131c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 17 Dec 2015 01:45:13 +0100 Subject: Move some functions to viewing library --- emacs/.emacs.d/init.el | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'emacs/.emacs.d/init.el') diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 27f5579..8bd0916 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -141,16 +141,6 @@ MODE1 is enabled and vice-versa." "Set the `disabled' property for each item in FUNCTIONS to nil." (mapc #'(lambda (f) (put f 'disabled nil)) functions)) -(defun oni:maybe-fci-mode () - "Turn on `fci-mode' if there is a filename for the buffer." - (when (buffer-file-name) - (fci-mode))) - -(defun oni:maybe-prettify-symbols-mode (&optional arg) - "See of `prettify-symbols-mode' is bound and call it if so." - (when (fboundp 'prettify-symbols-mode) - (prettify-symbols-mode arg))) - (defun oni:mini-fix-timestamp-string (date-string) "A minimal version of Xah Lee's `fix-timestamp-string'. Turn DATE-STRING into something else that can be worked with in @@ -1009,7 +999,7 @@ If no direction is given, don't split." (gnus-summary-next-subject 1))))) (oni:add-hooks 'html-mode-hook - #'oni:maybe-fci-mode #'tagedit-mode #'turn-off-flyspell + 'oni:maybe-fci-mode #'tagedit-mode #'turn-off-flyspell #'turn-off-auto-fill) (oni:add-hooks 'hy-mode-hook @@ -1038,8 +1028,8 @@ If no direction is given, don't split." #'oni:php-mode-func) (oni:add-hooks 'prog-mode-hook - #'oni:prog-mode-func #'oni:maybe-fci-mode #'rainbow-delimiters-mode - #'oni:maybe-prettify-symbols-mode) + #'oni:prog-mode-func 'oni:maybe-fci-mode #'rainbow-delimiters-mode + 'oni:maybe-prettify-symbols-mode) (oni:add-hooks 'python-mode-hook (lambda () (setq ac-sources '(ac-source-jedi-direct))) -- cgit v1.2.3-54-g00ecf