mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
fix autoscratch triggers
This commit is contained in:
10
.emacs
10
.emacs
@@ -1,4 +1,4 @@
|
|||||||
;; Toms Emacs Config - portable - version (20170724.01) -*-emacs-lisp-*-
|
;; Toms Emacs Config - portable - version (20170725.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
|
||||||
@@ -572,6 +572,8 @@
|
|||||||
;; 20170724.01:
|
;; 20170724.01:
|
||||||
;; - added ido completion for tramp hostnames
|
;; - added ido completion for tramp hostnames
|
||||||
|
|
||||||
|
;; 20170725.01:
|
||||||
|
;; - autoscratch lambda=>progn
|
||||||
|
|
||||||
;; ** TODO
|
;; ** TODO
|
||||||
|
|
||||||
@@ -601,7 +603,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 "20170724.01")
|
(defvar tvd-emacs-version "20170725.01")
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -1078,10 +1080,10 @@ to next buffer otherwise."
|
|||||||
(setq initial-major-mode 'autoscratch-mode)
|
(setq initial-major-mode 'autoscratch-mode)
|
||||||
(add-hook 'autoscratch-mode-hook '(lambda ()
|
(add-hook 'autoscratch-mode-hook '(lambda ()
|
||||||
(setq autoscratch-triggers-alist
|
(setq autoscratch-triggers-alist
|
||||||
'(("[(;]" . (lambda ()
|
'(("[(;]" . (progn
|
||||||
(emacs-lisp-mode)
|
(emacs-lisp-mode)
|
||||||
(electric-indent-local-mode t)))
|
(electric-indent-local-mode t)))
|
||||||
("#" . (lambda ()
|
("#" . (progn
|
||||||
(config-general-mode)
|
(config-general-mode)
|
||||||
(electric-indent-local-mode t)))
|
(electric-indent-local-mode t)))
|
||||||
("[-a-zA-Z0-9]" . (text-mode))
|
("[-a-zA-Z0-9]" . (text-mode))
|
||||||
|
|||||||
900
emacs.html
900
emacs.html
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user