From 636c985bdd9268052d30393211de85656b49f927 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 18 Dec 2015 01:17:59 +0100 Subject: [PATCH] Move reload-buffer to editing library --- emacs/.emacs.d/init.el | 7 +------ emacs/.emacs.d/site-lisp/oni-editing.el | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index e69b897..0336fc8 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -141,11 +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:reload-buffer () - "Reload current buffer." - (interactive) - (revert-buffer nil t nil)) - (defun oni:request-pull () "Start a mail to request pulling from a git repository." (interactive) @@ -910,7 +905,7 @@ If no direction is given, don't split." (global-set-key (kbd "") 'oni:raise-scratch) (global-set-key (kbd "") 'gnus) (global-set-key (kbd "") 'git-project-show-files) -(global-set-key (kbd "") #'oni:reload-buffer) +(global-set-key (kbd "") 'oni:reload-buffer) (global-set-key (kbd "") 'magit-status) (global-set-key (kbd "") 'oni:raise-eshell) (global-set-key (kbd "") 'oni:show-org-index) diff --git a/emacs/.emacs.d/site-lisp/oni-editing.el b/emacs/.emacs.d/site-lisp/oni-editing.el index 8e19562..908b5e3 100644 --- a/emacs/.emacs.d/site-lisp/oni-editing.el +++ b/emacs/.emacs.d/site-lisp/oni-editing.el @@ -98,6 +98,12 @@ "Specify that two spaces end a sentence in the current buffer." (setq-local sentence-end-double-space t)) +;;;###autoload +(defun oni:reload-buffer () + "Reload current buffer." + (interactive) + (revert-buffer nil t nil)) + ;;;###autoload (defun oni:upcase-prev (num) (interactive "p")