Skip to content

Instantly share code, notes, and snippets.

@winny-
Created July 29, 2019 06:33
Show Gist options
  • Save winny-/1cf26b0289ed6a2646509fe572d363e0 to your computer and use it in GitHub Desktop.
Save winny-/1cf26b0289ed6a2646509fe572d363e0 to your computer and use it in GitHub Desktop.
(defvar conf-portage-font-lock-keywords
'(("[ \t]+\\(-[0-9A-Za-z_-]+\\)" 1 diff-removed t)
("[ \t]+\\([0-9A-Za-z_+][0-9A-Za-z_-]+\\)" 1 diff-added t)))
(define-derived-mode conf-portage-mode conf-unix-mode "Conf[Portage]"
"Conf Mode starter for Portage files"
(conf-mode-initialize "#" 'conf-portage-font-lock-keywords))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment