mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-16 20:10:58 +01:00
renamed autoscratch mode
This commit is contained in:
@@ -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.
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user