diff options
| author | Lars Ingebrigtsen | 2016-02-20 19:05:45 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-20 19:05:45 +1100 |
| commit | 896f993dec0e7b18ed701a5dee6c224083d6e1dd (patch) | |
| tree | 4a3de110f308e30d0ef01c9c29eede7e4fc0d9fb | |
| parent | 24c1c1d5c3bc14cccdeb41f5de39a8d11993c566 (diff) | |
| download | emacs-896f993dec0e7b18ed701a5dee6c224083d6e1dd.tar.gz emacs-896f993dec0e7b18ed701a5dee6c224083d6e1dd.zip | |
Allow customising the article mode cursor behavior
* doc/misc/gnus.texi (HTML): Mention gnus-article-show-cursor.
* lisp/gnus/gnus-art.el (gnus-article-show-cursor): New variable.
(gnus-article-mode): Use it.
| -rw-r--r-- | doc/misc/gnus.texi | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index 7bcf1cd9714..2ae2e18ed00 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -11828,6 +11828,10 @@ A value of 0.7 (the default) means that they are allowed to take up | |||
| 11828 | this, and Emacs supports it, then the images will be rescaled down to | 11828 | this, and Emacs supports it, then the images will be rescaled down to |
| 11829 | fit these criteria. | 11829 | fit these criteria. |
| 11830 | 11830 | ||
| 11831 | @item gnus-article-show-cursor | ||
| 11832 | @vindex gnus-article-show-cursor | ||
| 11833 | If non-@code{nil}, display the cursor in the article buffer even when | ||
| 11834 | the article buffer isn't the current buffer. | ||
| 11831 | @end table | 11835 | @end table |
| 11832 | 11836 | ||
| 11833 | To use this, make sure that you have @code{w3m} and @code{curl} | 11837 | To use this, make sure that you have @code{w3m} and @code{curl} |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 079d16b3e15..4ea8baed854 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -527,6 +527,12 @@ each invocation of the saving commands." | |||
| 527 | (item :tag "never" nil) | 527 | (item :tag "never" nil) |
| 528 | (sexp :tag "once" :format "%t\n" :value t))) | 528 | (sexp :tag "once" :format "%t\n" :value t))) |
| 529 | 529 | ||
| 530 | (defcustom gnus-article-show-cursor nil | ||
| 531 | "If non-nil, show the cursor in the Article buffer even when not selected." | ||
| 532 | :version "25.1" | ||
| 533 | :group 'gnus-article | ||
| 534 | :type 'bool) | ||
| 535 | |||
| 530 | (defcustom gnus-saved-headers gnus-visible-headers | 536 | (defcustom gnus-saved-headers gnus-visible-headers |
| 531 | "Headers to keep if `gnus-save-all-headers' is nil. | 537 | "Headers to keep if `gnus-save-all-headers' is nil. |
| 532 | If `gnus-save-all-headers' is non-nil, this variable will be ignored. | 538 | If `gnus-save-all-headers' is non-nil, this variable will be ignored. |
| @@ -4521,7 +4527,8 @@ commands: | |||
| 4521 | (set (make-local-variable 'nobreak-char-display) nil) | 4527 | (set (make-local-variable 'nobreak-char-display) nil) |
| 4522 | ;; Enable `gnus-article-remove-images' to delete images shr.el renders. | 4528 | ;; Enable `gnus-article-remove-images' to delete images shr.el renders. |
| 4523 | (set (make-local-variable 'shr-put-image-function) 'gnus-shr-put-image) | 4529 | (set (make-local-variable 'shr-put-image-function) 'gnus-shr-put-image) |
| 4524 | (setq cursor-in-non-selected-windows nil) | 4530 | (unless gnus-article-show-cursor |
| 4531 | (setq cursor-in-non-selected-windows nil)) | ||
| 4525 | (gnus-set-default-directory) | 4532 | (gnus-set-default-directory) |
| 4526 | (buffer-disable-undo) | 4533 | (buffer-disable-undo) |
| 4527 | (setq buffer-read-only t | 4534 | (setq buffer-read-only t |