jobbflykt / x509-mode

View certificates and CRLs using OpenSSL in Emacs
MIT License
26 stars 4 forks source link

Allow customizing "CN" face in #3

Closed muirdm closed 2 years ago

muirdm commented 4 years ago

I would like to be able to customize the first face used in the below two font lock rules. I prefer to avoid bold faces in my theme. Maybe font-lock-variable-name-face would be appropriate for these?

   ;; something=string until ',' or '/' or EOL
   ;; E.g. CN=apa,OU=Räv
   '("\\(\\<\\w+=\\)\\(.*?\\)\\(?:[,/]\\|$\\)"
     (1 'bold)
     (2 'font-lock-string-face))

   ;; something = string until ',' or EOL
   ;; E.g. CN = ACCVRAIZ1, OU = PKIACCV, O = ACCV, C = ES
   '("\\(\\<\\w+\\) = \\(.*?\\)\\(?:[,/]\\|$\\)"
     (1 'bold)
     (2 'font-lock-string-face))
jobbflykt commented 2 years ago

Tanks. Fixed by adding face x509-short-name-face.