Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add font-lock for el-patch-def* forms #38

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add font-lock for el-patch-def* forms
  • Loading branch information
Matus Goljer committed Apr 13, 2019
commit f7740133bc54eef42f180dbdef61bbd2c49a1d1f
14 changes: 14 additions & 0 deletions el-patch.el
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,20 @@ This mode is enabled or disabled automatically when the
(el-patch-use-package-mode +1)
(el-patch-use-package-mode -1))

(font-lock-add-keywords
'emacs-lisp-mode
`((,(concat
"(\\(el-patch-def\\(?:un\\|macro\\|subst\\)\\)\\>[[:blank:]]+\\("
lisp-mode-symbol-regexp
"\\)[[:blank:]]"
)
(2 font-lock-function-name-face))
(,(concat
"(\\(el-patch-def\\(?:var\\|const\\|custom\\)\\)\\>[[:blank:]]+\\("
lisp-mode-symbol-regexp
"\\)[[:blank:]]")
(2 font-lock-variable-name-face))))

;;;; Closing remarks

(provide 'el-patch)
Expand Down