diff options
| author | Stefan Monnier | 2014-05-10 23:49:53 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-05-10 23:49:53 -0400 |
| commit | 80a78d23ea06e4bd449096f207fcda41827de9de (patch) | |
| tree | 139fbfbd3be1cfc7980f361c17768f94414683f3 /lisp/info.el | |
| parent | 4eb436826bd7912925634624beaf4173546dad49 (diff) | |
| download | emacs-80a78d23ea06e4bd449096f207fcda41827de9de.tar.gz emacs-80a78d23ea06e4bd449096f207fcda41827de9de.zip | |
* lisp/info.el (Info-quoted): New face.
(Info-mode-font-lock-keywords): New var.
(Info-mode): Use it.
Diffstat (limited to 'lisp/info.el')
| -rw-r--r-- | lisp/info.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/info.el b/lisp/info.el index 42b78f03526..89ca8bdbe33 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -4209,9 +4209,16 @@ With a zero prefix arg, put the name inside a function call to `info'." | |||
| 4209 | st) | 4209 | st) |
| 4210 | "Syntax table used in `Info-mode'.") | 4210 | "Syntax table used in `Info-mode'.") |
| 4211 | 4211 | ||
| 4212 | (defface Info-quoted | ||
| 4213 | '((t :family "courier")) | ||
| 4214 | "Face used for quoted elements.") | ||
| 4215 | |||
| 4216 | (defvar Info-mode-font-lock-keywords | ||
| 4217 | '(("‘\\([^’]*\\)’" (1 'Info-quoted)))) | ||
| 4218 | |||
| 4212 | ;; Autoload cookie needed by desktop.el | 4219 | ;; Autoload cookie needed by desktop.el |
| 4213 | ;;;###autoload | 4220 | ;;;###autoload |
| 4214 | (define-derived-mode Info-mode nil "Info" | 4221 | (define-derived-mode Info-mode nil "Info" ;FIXME: Derive from special-mode? |
| 4215 | "Info mode provides commands for browsing through the Info documentation tree. | 4222 | "Info mode provides commands for browsing through the Info documentation tree. |
| 4216 | Documentation in Info is divided into \"nodes\", each of which discusses | 4223 | Documentation in Info is divided into \"nodes\", each of which discusses |
| 4217 | one topic and contains references to other nodes which discuss related | 4224 | one topic and contains references to other nodes which discuss related |
| @@ -4297,6 +4304,7 @@ Advanced commands: | |||
| 4297 | (setq-local isearch-push-state-function #'Info-isearch-push-state) | 4304 | (setq-local isearch-push-state-function #'Info-isearch-push-state) |
| 4298 | (setq-local isearch-filter-predicate #'Info-isearch-filter) | 4305 | (setq-local isearch-filter-predicate #'Info-isearch-filter) |
| 4299 | (setq-local revert-buffer-function #'Info-revert-buffer-function) | 4306 | (setq-local revert-buffer-function #'Info-revert-buffer-function) |
| 4307 | (setq-local font-lock-defaults '(Info-mode-font-lock-keywords t t)) | ||
| 4300 | (Info-set-mode-line) | 4308 | (Info-set-mode-line) |
| 4301 | (setq-local bookmark-make-record-function #'Info-bookmark-make-record)) | 4309 | (setq-local bookmark-make-record-function #'Info-bookmark-make-record)) |
| 4302 | 4310 | ||