From dd4d9ea3ba1e7aa7a4986de0d5b9e9b2be4f077c Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 28 Jul 2019 20:07:54 -0400 Subject: [PATCH] various improvements --- init.el | 66 +++++++++++++++++++++++++-------------------------------- 1 file changed, 29 insertions(+), 37 deletions(-) diff --git a/init.el b/init.el index 247ecff..412b68d 100644 --- a/init.el +++ b/init.el @@ -218,7 +218,7 @@ Fourth argument TYPE is the custom option type." ;; nnfolder-generate-active-file ;; to reset things, when changing mail group. I duno all the proper way, but it works to delete - ;; ~/Mail ~/.newsrc.eld ~/.dribble (or something) + ;; ~/Mail ~/.newsrc.eld ~/.newsrc-dribble ;;;;; mail sources vs select methods background @@ -249,8 +249,6 @@ Fourth argument TYPE is the custom option type." ;;; things that should be at the beginning - ;; todo, evaluating this manually disables debug on error instead of toggling it - (toggle-debug-on-error) ;uncomment to help debug and catch errors ;; packages installed from package manager: i pretty much prioritize repos this way: gnu, then melpa, then marmalade. @@ -311,21 +309,6 @@ Fourth argument TYPE is the custom option type." -;;; undo tree mode - - ;; more resilient undo-tree-history if we have its location set up front. - (setq undo-tree-history-directory-alist '(("." . "~/.undo-tree-history"))) - - - ;; todo, send patch undo-tree-visualize should scroll with the scroll key, instead of just pgup pgdn (aka next/prior) - (global-undo-tree-mode) - ;; disabled due to bug, something like unknown entry in undo tree canary - ;; (setq undo-tree-auto-save-history t) - (setq undo-outer-limit 100000000 ; per undo command - undo-limit 500000000 ; undo history limit - undo-strong-limit 600000000) ; undo history limit plus some extra - ;; Undo in region just happens accidentally, and throws me off - (setq undo-tree-enable-undo-in-region nil) ;;; abreviations ;; turn on abbrev mode globally @@ -971,15 +954,8 @@ and Ian Kelling as the name" (defun fsf-mu4e () (interactive) - (require 'mu4e) - (unless (equal mu4e-maildir "/nocow/user/fsfmd") (mu-exit-wait)) + (my-mu4e-commmon) (setq - ;; fsf monitor is smaller - mu4e-headers-visible-lines 15 - mu4e-maildir "/nocow/user/fsfmd" - mu4e-refile-folder "/Spam" - mu4e-index-lazy-check nil - mu4e-get-mail-command "true" user-mail-address "iank@fsf.org" ;; WARNING: be careful editing this, there needs to be a space after --, and my editor ;; and git will automatically remove it unless i manually disable it. @@ -993,16 +969,7 @@ https://fsf.org | https://gnu.org mu4e-user-mail-address-list '("iank@fsf.org" "iank@gnu.org") - mu4e-maildir-shortcuts - '( ("/INBOX" . ?i) - ("/sysadmin" . ?a) - ("/sec" . ?x) - ("/rtcc" . ?c) - ("/Drafts" . ?d) - ("/Sent" . ?s) - ) ) ;; end setq - (call-process "/a/exe/lnf" nil nil nil "-T" "/nocow/user/.mufsf" (concat (getenv "HOME") "/.mu")) (add-hook 'mu4e-compose-pre-hook 'my-mu4e-to-fsf) (remove-hook 'mu4e-compose-pre-hook 'my-mu4e-to) (mu4e)) ;; end defun fsf-mu4e @@ -2351,7 +2318,11 @@ indent yanked text (with prefix arg don't indent)." ;; consider invisible frames to be unseen. seems like an obvious default erc-track-visibility 'visible ;; switch to buffer where i've been mentioned, etc instead of oldest - erc-track-switch-direction 'importance) + erc-track-switch-direction 'importance + ;; defaults minus fill + erc-modules + '(autojoin button completion irccontrols list match menu move-to-prompt netsplit networks noncommands readonly ring stamp track) + ) ;;; named commands @@ -2387,6 +2358,25 @@ indent yanked text (with prefix arg don't indent)." undo-limit 500000000 ; undo history limit undo-strong-limit 600000000) ; undo history limit plus some extra + +;;; undo tree mode + + ;; note, this has weird errors when it was before recentf-mode + + ;; more resilient undo-tree-history if we have its location set up front. + (setq undo-tree-history-directory-alist '(("." . "~/.undo-tree-history"))) + + + ;; todo, send patch undo-tree-visualize should scroll with the scroll key, instead of just pgup pgdn (aka next/prior) + (global-undo-tree-mode) + ;; disabled due to bug, something like unknown entry in undo tree canary + ;; (setq undo-tree-auto-save-history t) + (setq undo-outer-limit 100000000 ; per undo command + undo-limit 500000000 ; undo history limit + undo-strong-limit 600000000) ; undo history limit plus some extra + ;; Undo in region just happens accidentally, and throws me off + (setq undo-tree-enable-undo-in-region nil) + ;;; keybinds ;;;; misc @@ -3691,7 +3681,9 @@ modes like org-mode which have their own yank function." ;;;;; C-escape - find-tag (global-set-key (kbd "") 'find-tag) - ) ;; end let + +;;; end let from start of file + ) ;; Local Variables: ;; eval: (outline-minor-mode) -- 2.30.2