ffap.el: Exclude angle brackets from file names in XML
* lisp/ffap.el (ffap-string-at-point-mode-alist): Add elements for XML, to better recognize file names in XML buffers. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
cb9ee24ea6
commit
fd0a6cb172
1 changed files with 3 additions and 0 deletions
|
@ -1065,6 +1065,9 @@ If a given RFC isn't in these then `ffap-rfc-path' is offered."
|
|||
;; (La)TeX: don't allow braces
|
||||
(latex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
|
||||
(tex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
|
||||
;; XML: don't allow angle brackets
|
||||
(xml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
|
||||
(nxml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
|
||||
)
|
||||
"Alist of (MODE CHARS BEG END), where MODE is a symbol.
|
||||
This is possibly a major-mode name, or one of the symbols
|
||||
|
|
Loading…
Add table
Reference in a new issue