summaryrefslogtreecommitdiff
path: root/lisp/hexl.el
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2019-06-27 13:30:36 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-06-27 13:30:36 +0200
commit573de396f03684efa89ead24a371b0f4c9bf8d5d (patch)
tree9878c91ece8fde684203d6a1067dc8bdbf014272 /lisp/hexl.el
parente3b70e6b2dc5805fa92c9ddbf42fed81ed835f1b (diff)
downloademacs-573de396f03684efa89ead24a371b0f4c9bf8d5d.tar.gz
Apply font-lock in hexl-mode buffers
* lisp/hexl.el (hexl-mode): After setting font-lock-defaults, we need to call `font-lock-ensure' to apply hexl-mode faces (bug#24645).
Diffstat (limited to 'lisp/hexl.el')
-rw-r--r--lisp/hexl.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/hexl.el b/lisp/hexl.el
index ee5a9c0fce2..5ba0ef5b2a8 100644
--- a/lisp/hexl.el
+++ b/lisp/hexl.el
@@ -374,6 +374,8 @@ You can use \\[hexl-find-file] to visit a file in Hexl mode.
"hexl-current-address")
(if hexl-follow-ascii (hexl-follow-ascii-mode 1)))
+ (when global-font-lock-mode
+ (font-lock-ensure))
(run-mode-hooks 'hexl-mode-hook))