My .emacs are like a roadmap for me, where I send a lot of files. Their extension is .emacs: for example,
fileName.emacs
The problem is that only ~ / .emacs has syntax highlighting.
I would like to have syntax highlighting for all source files that end in .emacs.
How can you highlight syntax highlighting for all .emacs -files sources?
Yes. I assume these are lisp files, so you need Emacs to be automatically included in the lisp-mode when viewing these files. There are two solutions:
- .el. lisp -mode.
.el
- .emacs, ~/.emacs:
.emacs
~/.emacs
(setq auto-mode-alist (append '((".*\\.emacs\\'" . lisp-mode)) auto-mode-alist))
auto-mode-alist - , Emacs . , Emacs, Emacs , true, , .
auto-mode-alist
( , , .)
1, .
:
;-*-Lisp-*-
Lisp, Emacs Lisp ().
Source: https://habr.com/ru/post/1711382/More articles:Should I use a foreign key to display the tree relationship in SQL - sqlРельсы не могут найти класс генератора - rubyHow to create a Perl hash in C using SWIG? - cBreak wmd editor in IE8 - internet-explorer-8Making a call to the Pre / Post function - c ++VC ++: How to get the time and date of a file? - c ++List of potential applications that could open the file - cocoaVisual Studio 2008 Professional build process - unit-testingHTML Posting in ASP.NET Form - asp.net-mvcResolution of html tags in postback - htmlAll Articles