[PLUG] Emacs mode issue: Markdown
Rich Shepard
rshepard at appl-ecosys.com
Mon Nov 28 22:51:21 UTC 2022
On Mon, 28 Nov 2022, Johnathan Mantey wrote:
> FWIW, I tested the following:
> (add-to-list 'load-path "~/.emacs.d/elpa/markdown-mode-20221105.236")
> (autoload 'markdown-mode "markdown-mode.el"
> "Major mode for editing Markdown files" t)
> (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
> Using the ELPA version of the markdown source invokes syntax highlighting.
Johnathan,
Well, going to <https://elpa.nongnu.org/nongnu/markdown-mode.html> and
following the instructions to download and install markdown-mode I mangaged
to FUBAR ~/.emacs which was originally written in 1997 and upgraded with
language modes and tools (such as GTD). Adding the website code broke
things; restoring ~/.emacs from backup and commenting out the load-path line
for markdown-mode still produces the emacs startup warning:
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
Sigh.
Before I learned of emac's markdown mode I wrote many content pages with the
.md extension and no syntax highlighting. I can live with this; just need to
remove that warning which should have been removed with the line,
::(add-to-list 'load-path "~/.emacs.d/")
Regards,
Rich
More information about the PLUG
mailing list