[PLUG] Emacs mode issue: Markdown

Rich Shepard rshepard at appl-ecosys.com
Mon Nov 28 16:39:27 UTC 2022


I've installed Markdown and added it to ~/.emacs.d:
-----
;; For Markdown
;add the path where all the user modules will be located 
(add-to-list 'load-path "~/.emacs.d/")

(autoload 'markdown-mode "markdown-mode.el"
         "Major mode for editing Markdown files" t)
         (setq auto-mode-alist
                 (cons '("\\.md" . markdown-mode) auto-mode-alist)
         )
-----

When I load emacs I get a warning message:
Warning (initialization): Your ‘load-path’ seems to contain
your ‘.emacs.d’ directory: ~/.emacs.d/
This is likely to cause problems...
Consider using a subdirectory instead, e.g.: /home/rshepard/.emacs.d/lisp

I've not had any issues with other language-specific major modes. If I
comment out the line, (add-to-list 'load-path "~/.emacs.d/"), then there's
no warning and no markdown specifics (such as colorization) in the document.

I don't know enough elisp to know why I should add a lisp/ subdirectory to
~/.emacs.d and just what should be in that subdirectory.

Advice appreciated,

Rich



More information about the PLUG mailing list