From d2470794a8ca8c3e7568dce0cd72534ff560ff33 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 3 Nov 2020 14:40:56 +0100 Subject: Add markdown-mode --- .emacs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to '.emacs') diff --git a/.emacs b/.emacs index 222eb12..3e2c5bc 100644 --- a/.emacs +++ b/.emacs @@ -1,6 +1,13 @@ ;; Set up the keyboard so the delete key on both the regular keyboard ;; and the keypad delete the character under the cursor and to the right ;; under X, instead of the default, backspace behavior. + +;; Added by Package.el. This must come before configurations of +;; installed packages. Don't delete this line. If you don't want it, +;; just comment it out by adding a semicolon to the start of the line. +;; You may delete these explanatory comments. +;;(package-initialize) + (global-set-key [delete] 'delete-char) (global-set-key [kp-delete] 'delete-char) @@ -86,11 +93,24 @@ ;;(autoload 'php-mode "php-mode" "Mode for editing PHP source files") ;;(add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) + ;; Lua (autoload 'lua-mode "lua-mode" "Lua editing mode." t) (add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode)) ;;(add-to-list 'interpreter-mode-alist '("lua" . lua-mode)) + +;; Markdown +(autoload 'markdown-mode "markdown-mode" + "Major mode for editing Markdown files" t) +(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) +(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) + +(autoload 'gfm-mode "markdown-mode" + "Major mode for editing GitHub Flavored Markdown files" t) +(add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode)) + + ;; YAML (require 'yaml-mode) (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) -- cgit v1.3