+autoscratch-dir

This commit is contained in:
Thomas von Dein
2018-07-30 17:23:44 +02:00
parent 56ee106e79
commit a83443ef49

10
.emacs
View File

@@ -1,4 +1,4 @@
;; Toms Emacs Config - portable - version (20180710.01) -*-emacs-lisp-*- ;; Toms Emacs Config - portable - version (20180730.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
@@ -636,6 +636,9 @@
;; - added ediff config ;; - added ediff config
;; - fixed ob-sh to ob-shell ;; - fixed ob-sh to ob-shell
;; 20180730.01
;; - added autoscratch-reset-default-directory t
;; ** TODO ;; ** TODO
;; - check helpful https://github.com/wilfred/helpful ;; - check helpful https://github.com/wilfred/helpful
@@ -664,7 +667,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 "20180710.01") (defvar tvd-emacs-version "20180730.01")
;; -------------------------------------------------------------------------------- ;; --------------------------------------------------------------------------------
@@ -1163,7 +1166,8 @@ to next buffer otherwise."
("/" . (c-mode)) ("/" . (c-mode))
("*" . (progn (insert " ") (org-mode))) ("*" . (progn (insert " ") (org-mode)))
("." . (fundamental-mode))) ("." . (fundamental-mode)))
autoscratch-trigger-on-first-char t) autoscratch-trigger-on-first-char t
autoscratch-reset-default-directory t)
(electric-indent-local-mode nil) (electric-indent-local-mode nil)
)) ))
(defalias 'scratch 'autoscratch-buffer) (defalias 'scratch 'autoscratch-buffer)