"C-c C-g" #'emacs-news-goto-section
"C-c C-j" #'emacs-news-find-heading
"C-c C-e" #'emacs-news-count-untagged-entries
+ "C-x C-q" #'emacs-news-view-mode
"<remap> <open-line>" #'emacs-news-open-line)
(defvar-keymap emacs-news-view-mode-map
- :parent emacs-news-common-map)
+ :parent emacs-news-common-map
+ "C-x C-q" #'emacs-news-mode)
(defvar emacs-news-mode-font-lock-keywords
`(("^---$" 0 'emacs-news-does-not-need-documentation)
;;;###autoload
(define-derived-mode emacs-news-mode text-mode "NEWS"
"Major mode for editing the Emacs NEWS file."
+ ;; Disable buttons.
+ (button-mode nil)
+ ;; And make the buffer writable. This is used when toggling
+ ;; emacs-news-mode.
+ (setq buffer-read-only nil)
(setq-local fill-paragraph-function #'emacs-news--fill-paragraph)
(emacs-news--mode-common))