renamed autoscratch mode

This commit is contained in:
2023-06-01 19:33:32 +02:00
parent 08c5f5458a
commit 4dc608af31
3 changed files with 30 additions and 24 deletions

View File

@@ -11,6 +11,12 @@
'("7f1d414afda803f3244c6fb4c2c64bea44dac040ed3731ec9d75275b9e831fe5" default)) '("7f1d414afda803f3244c6fb4c2c64bea44dac040ed3731ec9d75275b9e831fe5" default))
'(magit-todos-insert-after '(bottom) nil nil "Changed by setter of obsolete option `magit-todos-insert-at'") '(magit-todos-insert-after '(bottom) nil nil "Changed by setter of obsolete option `magit-todos-insert-at'")
'(package-selected-packages '(package-selected-packages
'(blamer howm tiny tramp dictcc beacon which-key goto-last-change browse-kill-ring fringe-current-line swiper smex undo-tree fic-mode cmake-mode yaml-mode windresize web-mode use-package tablist solarized-theme smartparens rust-mode projectile persistent-scratch org-bullets markdown-mode magit iedit ibuffer-vc ibuffer-tramp hydra htmlize highlight-indentation go-mode eyebrowse elmacro dumb-jump dired-ranger dired-k dired-filter default-text-scale change-inner buffer-move)) '(package-lint blamer howm tiny tramp dictcc beacon which-key goto-last-change browse-kill-ring fringe-current-line swiper smex undo-tree fic-mode cmake-mode yaml-mode windresize web-mode use-package tablist solarized-theme smartparens rust-mode projectile persistent-scratch org-bullets markdown-mode magit iedit ibuffer-vc ibuffer-tramp hydra htmlize highlight-indentation go-mode eyebrowse elmacro dumb-jump dired-ranger dired-k dired-filter default-text-scale change-inner buffer-move))
'(safe-local-variable-values '((ruby-indent-level 4))) '(safe-local-variable-values '((ruby-indent-level 4)))
'(warning-suppress-types '((comp)))) '(warning-suppress-types '((comp))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)

View File

@@ -10,28 +10,28 @@
;; *** Autoscratch ;; *** Autoscratch
;; use autoscratch otherwise ;; use autoscratch otherwise
;; [[https://github.com/TLINDEN/autoscratch][autoscratch github]] ;; [[https://github.com/TLINDEN/autoscratch][autoscratch github]]
(use-package autoscratch-mode (use-package autoscratch
:ensure nil :ensure nil
:config :config
(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
'(("[(;]" . (progn '(("[(;]" . (progn
(call-interactively 'emacs-lisp-mode) (call-interactively 'emacs-lisp-mode)
(call-interactively 'enable-paredit-mode) (call-interactively 'enable-paredit-mode)
(call-interactively 'electric-pair-mode))) (call-interactively 'electric-pair-mode)))
("#" . (progn ("#" . (progn
(call-interactively 'config-general-mode) (call-interactively '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))
("/" . (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) autoscratch-reset-default-directory t)
(electric-indent-local-mode nil) (electric-indent-local-mode nil)
)) ))
(defalias 'scratch 'autoscratch-buffer)) (defalias 'scratch 'autoscratch-buffer))
;;; *** Persistent Scratch ;;; *** Persistent Scratch
;; I also like to be scratch buffers persistent with ;; I also like to be scratch buffers persistent with

View File

@@ -20,7 +20,7 @@
(el-get-bundle autoscratch (el-get-bundle autoscratch
:type github :type github
:pkgname "tlinden/autoscratch" :pkgname "tlinden/autoscratch"
:features autoscratch-mode) :features autoscratch)
(el-get-bundle novel-mode (el-get-bundle novel-mode
:type github :type github