5

python-mode.el (from https://gitlab.com/python-mode-devs/python-mode) has more "bells-and-whistles" than python.el (included with Emacs). Things like better integration with IPython and auto-completers, integration with Pymacs (python<->elisp bindings), filling, etc. You can read for yourself its features at its gitlab. When it's said that they work ...


3

(setq auto-mode-alist (cons '("\\.md" . markdown-mode) auto-mode-alist)) That \\.md should be \\.md\\' otherwise it'll match every filename containing the sequence .md anywhere. (I.e. You already weren't limiting your usage to just matching filename extensions. For instance /home/alper/.mdir/foo/bar.c would match your pattern.) As you can see, the ...


3

The issue is mostly caused by autoloads. In julia-mode.el you can see that (add-to-list 'auto-mode-alist '("\\.jl\\'" . julia-mode)) is marked as to be autoloaded. If you were to look at ~/.emacs.d/elpa/julia-mode-${version}/julia-mode-autoloads.el (which is automatically generated from julia-mode.el when you initially install the package), you would indeed ...


2

C-h v magic-mode-alist says this: magic-mode-alist is a variable defined in files.el. Its value is nil This variable can be risky when used as a file-local variable. Documentation: Alist of buffer beginnings vs. corresponding major mode functions. Each element looks like (REGEXP . FUNCTION) or (MATCH-FUNCTION . FUNCTION). After ...


2

Update auto-mode-alist, to give it an association between *.el and lisp-interaction-mode. (add-to-list 'auto-mode-alist (cons "\\.el\\'" #'lisp-interaction-mode)) See the Elisp manual, node Auto Major Mode.


2

After some more googling, I think I found the answer to my own question. The following code works: (setq auto-mode-alist ()) The list auto-mode-alist seems to be a hash that has file extensions as keys and major modes as values: https://www.emacswiki.org/emacs/AutoModeAlist


1

Install json-mode might be the simplest. In my set up (I use straight.el) simply (use-package json-mode)


Only top voted, non community-wiki answers of a minimum length are eligible