[PLUG] Using newly installed emacs mode

Rich Shepard rshepard at appl-ecosys.com
Thu May 11 16:36:53 UTC 2017


On Thu, 11 May 2017, Dale Snell wrote:

> The simplest thing is probably to add the file type to 'auto-mode-alist'.
> The command will look something like
>
>    (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode) t)

Dale,

   I knew it was something like this but had not before known of
auto-mode-alist.

> That's assuming that the mode name is "js2-mode" and the file type
> is ".js".

   Yep, the mode is js2-mode and file suffices are .js.

Many thanks,

Rich



More information about the PLUG mailing list