Questions tagged [auto-mode-alist]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
35 views

How do I associate a file such as git's `COMMIT_EDITMSG` with a specific mode?

I was doing following solution for markdown files: How do I associate a file extension with a specific mode? (autoload 'markdown-mode "markdown-mode.el" "Major mode for editing Markdown files" t) ...
-1
votes
1answer
100 views

How to make Emacs edit JSON data in `json-mode`?

I am working with GNU Emacs 23.1.1. When working with a .json file it is treated in the Fundamental mode: How can I have the json file treated in the json mode? I note that GNU Emacs 24.3.1 opens ...
0
votes
1answer
358 views

does one has to explicity enable python-mode etc. to work with python files?

Sometimes I see people talking about enabling python-mode and so on. Is that only necessary for older emacs versions? I thought, the respective mode is enabled automatically when opening a ...
1
vote
1answer
59 views

Enable diff-mode for files with diff-ish content

How do I make Emacs automatically turn on diff-mode for any file with diff-looking content, eg. --- a.txt +++ b.txt @@ -1234,56 +1234,56 @@
3
votes
1answer
177 views

“Dissasociate” auto-mode for specific files (in ESS)

I'd like to keep ess as automatic major mode for R files and everything else, except for Julia, for which I want to use julia-mode alone. However, I cannot find out how to "unbind" the file ...
1
vote
1answer
75 views

Is There a Way To Set “Lisp-Interaction-Mode” to be Default?

I'm using Emacs in the terminal of Mac. Each time I exist an .el file and reopen another, I have to set lisp-interaction-mode. Is there some sort of command or item I can place in the .emacs file to ...