From 4dc608af319ec80ae4af7bd08cb8d5395ac9906e Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Thu, 1 Jun 2023 19:33:32 +0200 Subject: [PATCH] renamed autoscratch mode --- customize.el | 8 +++++++- lisp/init-autoscratch.el | 44 ++++++++++++++++++++-------------------- lisp/init-elget.el | 2 +- 3 files changed, 30 insertions(+), 24 deletions(-) diff --git a/customize.el b/customize.el index b3df9cd..1df9b16 100644 --- a/customize.el +++ b/customize.el @@ -11,6 +11,12 @@ '("7f1d414afda803f3244c6fb4c2c64bea44dac040ed3731ec9d75275b9e831fe5" default)) '(magit-todos-insert-after '(bottom) nil nil "Changed by setter of obsolete option `magit-todos-insert-at'") '(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))) '(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. + ) diff --git a/lisp/init-autoscratch.el b/lisp/init-autoscratch.el index 8e4bb1a..e7ababb 100644 --- a/lisp/init-autoscratch.el +++ b/lisp/init-autoscratch.el @@ -10,28 +10,28 @@ ;; *** Autoscratch ;; use autoscratch otherwise ;; [[https://github.com/TLINDEN/autoscratch][autoscratch github]] -(use-package autoscratch-mode - :ensure nil - :config - (setq initial-major-mode 'autoscratch-mode) - (add-hook 'autoscratch-mode-hook '(lambda () - (setq autoscratch-triggers-alist - '(("[(;]" . (progn - (call-interactively 'emacs-lisp-mode) - (call-interactively 'enable-paredit-mode) - (call-interactively 'electric-pair-mode))) - ("#" . (progn - (call-interactively 'config-general-mode) - (electric-indent-local-mode t))) - ("[-a-zA-Z0-9]" . (text-mode)) - ("/" . (c-mode)) - ("*" . (progn (insert " ") (org-mode))) - ("." . (fundamental-mode))) - autoscratch-trigger-on-first-char t - autoscratch-reset-default-directory t) - (electric-indent-local-mode nil) - )) - (defalias 'scratch 'autoscratch-buffer)) +(use-package autoscratch + :ensure nil + :config + (setq initial-major-mode 'autoscratch-mode) + (add-hook 'autoscratch-mode-hook '(lambda () + (setq autoscratch-triggers-alist + '(("[(;]" . (progn + (call-interactively 'emacs-lisp-mode) + (call-interactively 'enable-paredit-mode) + (call-interactively 'electric-pair-mode))) + ("#" . (progn + (call-interactively 'config-general-mode) + (electric-indent-local-mode t))) + ("[-a-zA-Z0-9]" . (text-mode)) + ("/" . (c-mode)) + ("*" . (progn (insert " ") (org-mode))) + ("." . (fundamental-mode))) + autoscratch-trigger-on-first-char t + autoscratch-reset-default-directory t) + (electric-indent-local-mode nil) + )) + (defalias 'scratch 'autoscratch-buffer)) ;;; *** Persistent Scratch ;; I also like to be scratch buffers persistent with diff --git a/lisp/init-elget.el b/lisp/init-elget.el index 91856ac..ac380b3 100644 --- a/lisp/init-elget.el +++ b/lisp/init-elget.el @@ -20,7 +20,7 @@ (el-get-bundle autoscratch :type github :pkgname "tlinden/autoscratch" - :features autoscratch-mode) + :features autoscratch) (el-get-bundle novel-mode :type github