mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
fixed sh-mode
This commit is contained in:
17
.emacs
17
.emacs
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user