fixed sh-mode

This commit is contained in:
Thomas von Dein
2019-02-15 07:54:46 +01:00
parent b8453f81a7
commit ad62ddc734

17
.emacs
View File

@@ -1,4 +1,4 @@
;; Toms Emacs Config - portable - version ("20190114.01") -*-emacs-lisp-*- ;; Toms Emacs Config - portable - version ("20190214.01") -*-emacs-lisp-*-
;; * Introduction ;; * Introduction
;; This is my emacs config, it is more than twenty years old. It ;; This is my emacs config, it is more than twenty years old. It
@@ -763,6 +763,9 @@
;; 20190114.01 ;; 20190114.01
;; - disabled variable pitch, annoys me ;; - disabled variable pitch, annoys me
;; 20190214.01
;; - fixed C-c C-c in shell-script-mode
;; ** TODO ;; ** TODO
;; - check helpful https://github.com/wilfred/helpful ;; - check helpful https://github.com/wilfred/helpful
@@ -790,7 +793,7 @@
;; My emacs config has a version (consisting of a timestamp with a ;; My emacs config has a version (consisting of a timestamp with a
;; serial), which I display in the mode line. So I can clearly see, if ;; serial), which I display in the mode line. So I can clearly see, if
;; I'm using an outdated config somewhere. ;; I'm using an outdated config somewhere.
(defvar tvd-emacs-version "20190114.01") (defvar tvd-emacs-version "20190214.01")
;; -------------------------------------------------------------------------------- ;; --------------------------------------------------------------------------------
@@ -2114,6 +2117,16 @@ col1, col2"
(append '(("\\.\\(py\\)$" . python-mode)) (append '(("\\.\\(py\\)$" . python-mode))
auto-mode-alist)) auto-mode-alist))
;; -------------------------------------------------------------------------------- ;; --------------------------------------------------------------------------------
;; *** Shell-Script Mode
;; C-c C-c [un-]comments everywhere, force in shell-script-mode as well
(add-hook
'sh-mode-hook
(function
(lambda()
(local-set-key (kbd "C-c C-c") 'comment-or-uncomment-region-or-line))))
;; --------------------------------------------------------------------------------
;; *** cperl mode ;; *** cperl mode