]> git.eshelyaron.com Git - emacs.git/commit
Convert symbol prettification into minor mode and global minor mode.
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 18 Jun 2013 22:13:25 +0000 (00:13 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 18 Jun 2013 22:13:25 +0000 (00:13 +0200)
commit14dd22d2cedad0e1babcce0fea868a0c01294fa2
tree49f91c1cf89ab6ea0dcc92234bb6988d62d404d5
parentec9295aeaa0ca3616507b66bd6e2f81dce05e820
Convert symbol prettification into minor mode and global minor mode.

* etc/NEWS: Document new Prettify Symbols mode.

* lisp/progmodes/prog-mode.el (prettify-symbols-alist): Rename from
  `prog-prettify-symbols', and make a local defvar instead of defcustom.
  (prettify-symbols--keywords): Rename from `prog-prettify-symbols-alist'
  and make a local defvar.
  (prettify-symbols--compose-symbol): Rename from
  `prog--prettify-font-lock-compose-symbol'.
  (prettify-symbols--make-keywords): Rename from
  `prog-prettify-font-lock-symbols-keywords' and simplify.
  (prog-prettify-install): Remove.
  (prettify-symbols-mode): New minor mode, based on `prog-prettify-install'.
  (turn-on-prettify-symbols-mode): New function.
  (global-prettify-symbols-mode): New globalized minor mode.

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables):
* lisp/progmodes/cfengine.el (cfengine3-mode):
* lisp/progmodes/perl-mode.el (perl-mode): Don't call `prog-prettify-install';
  set `prettify-symbols-alist' instead.
etc/ChangeLog
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/lisp-mode.el
lisp/progmodes/cfengine.el
lisp/progmodes/perl-mode.el
lisp/progmodes/prog-mode.el