Use personal fork of highlight-escape-sequences

Improves elisp support, adds support for more modes and fixes some minor
issues.
This commit is contained in:
Henrik Lissner 2018-08-16 15:17:07 +02:00
parent a715f848aa
commit ce9f03f310
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 3 additions and 16 deletions

View file

@ -144,21 +144,7 @@ Also see `doom-exit-buffer-hook'.")
;; `highlight-escape-sequences' ;; `highlight-escape-sequences'
(def-package! highlight-escape-sequences (def-package! highlight-escape-sequences
:after-call after-find-file :hook ((prog-mode conf-mode) . highlight-escape-sequences-mode))
:config
(defconst hes-python-escape-sequence-re
(rx (submatch
(and ?\\ (submatch
(or (repeat 1 3 (in "0-7"))
(and ?x (repeat 2 xdigit))
(and ?u (repeat 4 xdigit))
(and ?U (repeat 8 xdigit))
(and ?N "{" (one-or-more alpha) "}")
(any "\"\'\\abfnrtv")))))))
(add-to-list 'hes-mode-alist `(python-mode . ,hes-python-escape-sequence-re))
(add-to-list 'hes-mode-alist `(enh-ruby-mode . ,hes-ruby-escape-sequence-keywords))
(hes-mode +1))
;; `rainbow-delimiters' Helps us distinguish stacked delimiter pairs. Especially ;; `rainbow-delimiters' Helps us distinguish stacked delimiter pairs. Especially
;; in parentheses-drunk languages like Lisp. ;; in parentheses-drunk languages like Lisp.

View file

@ -11,7 +11,8 @@
(package! hide-mode-line) (package! hide-mode-line)
(package! highlight-indentation) (package! highlight-indentation)
(package! highlight-numbers) (package! highlight-numbers)
(package! highlight-escape-sequences) (package! highlight-escape-sequences
:recipe (:fetcher github :repo "hlissner/highlight-escape-sequences"))
(unless (boundp 'display-line-numbers) (unless (boundp 'display-line-numbers)
(package! nlinum) (package! nlinum)
(package! nlinum-hl) (package! nlinum-hl)