help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text formating


From: Gottfried
Subject: Re: text formating
Date: Thu, 9 Feb 2023 14:59:16 +0000

Hi Jean,

thanks for your help.
...........................................................
I added this line to my init.el file

(define-key markdown-mode-map (kbd "C-c a") #'rcd-markdown-preview)
................................................................
but running emacs again it said:
.............................................................
Warning (initialization): An error occurred while loading ‘/home/gfp/.config/emacs/init.el’:

Symbol's value as variable is void: markdown-mode-map

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace. Disable showing Disable logging
..............................................................
Kind regards

Gottfried


Am 08.02.23 um 20:37 schrieb Jean Louis:
* Gottfried <gottfried@posteo.de> [2023-02-08 19:50]:
I installed markdown-mode in Emacs, but I have Emacs 28.2, so I can’t set
the keymap for C-c a.

Then you use:

(define-key KEYMAP KEY DEF &optional REMOVE)

So like this:

(define-key markdown-mode-map (kbd "C-c a") #'rcd-markdown-preview)

I also installed Pandoc and emacs-pandoc-mode

Pandoc is good for various conversions of documents.

For example markdown to PDF, it can work I guess. I have many
functions for pandoc too.

I opended emacs and evoked markdown-mode and it opened my file in
markdown-mode. So at least it works.

Good, now just to define key to get preview. Some people make their
notes in markdown. It is more compatible with mobile editors on mobile
devices then Org mode.

I seriously consider using Enriched Mode as it is more visual, just
that I make `paps` work with it.


--

Attachment: OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]