]> git.earman.xyz Git - emacsinit.git/commitdiff
Add Markdown-Mode, put MELPA at the end of the list
authorrearman <rearman@r717.net>
Tue, 12 Aug 2025 14:02:37 +0000 (10:02 -0400)
committerrearman <rearman@r717.net>
Tue, 12 Aug 2025 14:02:37 +0000 (10:02 -0400)
re/re-packages.el

index 145b65fc2daef18b0036afe379068244006c080e..4d2fc967935de11738f020fed70b513fabfa95c7 100644 (file)
@@ -5,7 +5,7 @@
 
 (require 'package)
 
-(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
 
 (use-package ledger-mode
   :ensure
   (add-hook 'after-save-hook 'howm-mode-set-buffer-name)
   (add-hook 'howm-mode-hook 'howm-mode-set-buffer-name))
 
+(use-package edit-indirect :ensure t)
+
+(use-package markdown-mode
+  :ensure
+  t
+  :config
+  (setq markdown-special-ctrl-a/e t)
+  :bind
+  (:map markdown-mode-map
+       ("M-<right>" . markdown-demote)
+       ("M-<left>" . markdown-promote)
+       ("M-<up>" . markdown-move-up)
+       ("M-<down>" . markdown-move-down)
+       ("C-M-u" . markdown-up-heading)
+       ("C-M-d" . markdown-down-heading)
+       ("C-M-b" . markdown-previous-same-level)
+       ("C-M-f" . markdown-next-same-level)
+       ("C-M-p" . markdown-outline-previous)
+       ("C-M-n" . markdown-outline-next)))
+
 (provide 're-packages)
 ;;; re-packages.el ends here