mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
+fixes
This commit is contained in:
17
.emacs
17
.emacs
@@ -552,6 +552,7 @@
|
|||||||
;; - incorporated my C::G customizations, Steve Purcell removed from
|
;; - incorporated my C::G customizations, Steve Purcell removed from
|
||||||
;; it because inappropriate,
|
;; it because inappropriate,
|
||||||
;; [[https://github.com/TLINDEN/config-general-mode/commit/d7e8323][see d7e8323]]
|
;; [[https://github.com/TLINDEN/config-general-mode/commit/d7e8323][see d7e8323]]
|
||||||
|
;; - fixed autoscratch hook
|
||||||
|
|
||||||
;; ** TODO
|
;; ** TODO
|
||||||
|
|
||||||
@@ -581,7 +582,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 "20170714.01")
|
(defvar tvd-emacs-version "20170715.01")
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -1053,19 +1054,11 @@ to next buffer otherwise."
|
|||||||
(with-current-buffer (get-buffer-create "*text*")
|
(with-current-buffer (get-buffer-create "*text*")
|
||||||
(text-mode))
|
(text-mode))
|
||||||
|
|
||||||
(defun tvd-startup-scratch-or-file ()
|
|
||||||
"Jump to command line arg file, if any, or start with *text* buffer."
|
|
||||||
(interactive)
|
|
||||||
(let ((last-arg (find-buffer-visiting (replace-regexp-in-string "\\\\" "/" (car (last command-line-args))))))
|
|
||||||
(if last-arg
|
|
||||||
(switch-to-buffer last-arg)
|
|
||||||
(switch-to-buffer "*text*"))))
|
|
||||||
|
|
||||||
;;(setq initial-buffer-choice 'tvd-startup-scratch-or-file)
|
|
||||||
|
|
||||||
(require 'autoscratch)
|
(require 'autoscratch)
|
||||||
(setq initial-major-mode 'autoscratch-mode)
|
(setq initial-major-mode 'autoscratch-mode)
|
||||||
(add-hook 'autoscratch-hook '(lambda () (setq electric-indent-mode nil)))
|
(add-hook 'autoscratch-mode-hook '(lambda ()
|
||||||
|
(setq electric-indent-mode nil
|
||||||
|
autoscratch-trigger-on-first-char t)))
|
||||||
|
|
||||||
;; * Global Key Bindings
|
;; * Global Key Bindings
|
||||||
;; --------------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------------
|
||||||
|
|||||||
878
emacs.html
878
emacs.html
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user