Rich,
Emacs will search ~/.emacs.d for ELisp source by default. There is no need
to add it to the load-path variable.
I would use code *like this* to add Markdown to the auto-mode-alist:
       (add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode))

On Mon, Nov 28, 2022 at 8:39 AM Rich Shepard <[email protected]>
wrote:

> 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
>

Reply via email to