From 692c93773ba90f7731cd758c08b5280f16b0ee4e Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 17 Dec 2020 14:56:59 +0100 Subject: Sync .pure and .termfix --- .emacs.pure | 7 +++++++ .emacs.termfix | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/.emacs.pure b/.emacs.pure index 085f6ea..8799205 100644 --- a/.emacs.pure +++ b/.emacs.pure @@ -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) diff --git a/.emacs.termfix b/.emacs.termfix index 704937f..6195cb4 100644 --- a/.emacs.termfix +++ b/.emacs.termfix @@ -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) @@ -97,11 +104,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