aboutsummaryrefslogtreecommitdiff
path: root/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 0c41713..278a039 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -153,6 +153,17 @@
;; Let flyspell be performant.
(defvar flyspell-issue-message-flag nil)
+;; Allow users to fetch the latest Emacs' NEWS file.
+(defun view-emacs-latest-news ()
+ "Allow users to fetch the latest Emacs' NEWS file."
+ (interactive)
+
+ (url-copy-file
+ "http://git.savannah.gnu.org/cgit/emacs.git/plain/etc/NEWS"
+ "/tmp/emacs-news" t)
+
+ (find-file-read-only "/tmp/emacs-news" t))
+
;;; Packages
;; I'm using use-package to handle my installed packages. I don't know if it's