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