diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-07-04 17:44:21 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-07-04 17:44:21 +0200 |
| commit | 00b5828b56b3f432d9380c0239191b4bdd3a8ba8 (patch) | |
| tree | c0f8e5473717c5d484788e3a85c0c742244b44df | |
| parent | 530bb482c3c167ccc1f101498d7f321fcacc244c (diff) | |
| download | dotfiles-00b5828b56b3f432d9380c0239191b4bdd3a8ba8.tar.gz dotfiles-00b5828b56b3f432d9380c0239191b4bdd3a8ba8.zip | |
emacs: introduced a function to fetch the latest news
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
| -rw-r--r-- | emacs/init.el | 11 |
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 |
