summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-12-17 01:27:39 +0100
committerGravatar Tom Willemse2015-12-17 01:27:39 +0100
commit44a8d0139d0fe3ea241e404ffcafdf749daef9ef (patch)
treed250e20c11cffd0e37bf7b185f594cacc4285991 /emacs
parentbc6c5394ac67ceac417fbdbb196dc7d6be1c5cdb (diff)
downloaddotfiles-44a8d0139d0fe3ea241e404ffcafdf749daef9ef.tar.gz
dotfiles-44a8d0139d0fe3ea241e404ffcafdf749daef9ef.zip
Move locally-enable-double-spaces to editing lib
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.el6
-rw-r--r--emacs/.emacs.d/site-lisp/oni-editing.el5
2 files changed, 6 insertions, 5 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 5900ee8..9446e03 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -141,10 +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:locally-enable-double-spaces ()
- "Specify that two spaces end a sentence in the current buffer."
- (setq-local sentence-end-double-space t))
-
(defun oni:lua-mode-func()
"Function for `lua-mode-hook'."
(local-unset-key (kbd ")"))
@@ -1012,7 +1008,7 @@ If no direction is given, don't split."
ac-source-functions
ac-source-variables
ac-source-symbols)))
- #'oni:locally-enable-double-spaces #'oni:set-emacs-lisp-symbols
+ 'oni:locally-enable-double-spaces #'oni:set-emacs-lisp-symbols
#'paredit-mode #'eldoc-mode #'oni:set-emacs-lisp-keys)
(oni:add-hooks 'eshell-mode-hook
diff --git a/emacs/.emacs.d/site-lisp/oni-editing.el b/emacs/.emacs.d/site-lisp/oni-editing.el
index 97ca1f2..315750d 100644
--- a/emacs/.emacs.d/site-lisp/oni-editing.el
+++ b/emacs/.emacs.d/site-lisp/oni-editing.el
@@ -66,6 +66,11 @@
(indent-region (region-beginning) (region-end))))
;;;###autoload
+(defun oni:locally-enable-double-spaces ()
+ "Specify that two spaces end a sentence in the current buffer."
+ (setq-local sentence-end-double-space t))
+
+;;;###autoload
(defun oni:upcase-prev (num)
(interactive "p")
(oni:change-prev-case num 'up))