Compare commits
8 Commits
e9e35a2635
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
9ec0a48bdb
|
|||
|
f3357e1a36
|
|||
|
957e38635e
|
|||
|
de766e6e6f
|
|||
|
b92fb9394f
|
|||
|
fc4aac14a1
|
|||
|
81c7014c65
|
|||
|
a498c5a811
|
@@ -326,6 +326,7 @@ This returns a hash table of cid -> path."
|
||||
ARG is passed directly to `message-send'."
|
||||
;; This has to return a non-nil value so that org knows we handled the C-c C-c
|
||||
(interactive "P")
|
||||
(save-current-buffer
|
||||
(let ((modified (buffer-modified-p))
|
||||
;; we only restore the restriction if the sending below fails
|
||||
(old-rest (cons (point-min) (point-max))))
|
||||
@@ -343,7 +344,7 @@ ARG is passed directly to `message-send'."
|
||||
(insert save-text)
|
||||
(narrow-to-region (car old-rest) (cdr old-rest))
|
||||
(restore-buffer-modified-p modified)
|
||||
'failed)))))
|
||||
'failed))))))
|
||||
|
||||
(defun org-mu4e-send-and-exit (&optional arg)
|
||||
"Call `org-mu4e-send', the save and kill the buffer.
|
||||
|
||||
23
init.el
23
init.el
@@ -4,6 +4,13 @@
|
||||
(require 'cl-lib)
|
||||
(require 'xdg)
|
||||
|
||||
;; Setup PATH
|
||||
(dolist (file '("/usr/local/sbin" "~/.local/bin" "~/.ghcup/bin"
|
||||
"/usr/bin/site_perl" "/usr/bin/vendor_perl"
|
||||
"/usr/bin/core_perl"))
|
||||
(add-to-list 'exec-path (directory-file-name
|
||||
(expand-file-name file))))
|
||||
|
||||
;; Some other config files
|
||||
(cl-eval-when (compile load eval)
|
||||
(add-to-list 'load-path (expand-file-name "elisp" user-emacs-directory))
|
||||
@@ -2076,6 +2083,7 @@ This is :around advice, so OLDFUN is the real function
|
||||
:ensure nil
|
||||
:hook (sh-mode . my/-setup-sh-mode)
|
||||
:init
|
||||
(add-to-list 'auto-mode-alist '("/\\.envrc\\'" . sh-mode))
|
||||
(defun my/-setup-sh-mode ()
|
||||
(add-hook 'completion-at-point-functions #'cape-file nil t)))
|
||||
|
||||
@@ -2837,10 +2845,10 @@ Actually, return the method name."
|
||||
("ga" "git add $*")
|
||||
("gcm" "git commit -m ${string-join $* \" \"}")
|
||||
("ldg" "ledger -f \"$HOME/docs/finance/finances.ledger\" $*")
|
||||
("tp" "trash-put $*")
|
||||
("trr" "trash-restore $*")
|
||||
("tre" "trash-empty $*")
|
||||
("trm" "trash-rm $*")
|
||||
("tp" "clash put $*")
|
||||
("trr" "clash restore $*")
|
||||
("tre" "clash empty $*")
|
||||
("trm" "clash empty $*")
|
||||
("rm" "echo 'rm: I''m unsafe! Don''t use me.'; false")
|
||||
("\\rm" "eshell/rm")))
|
||||
|
||||
@@ -3218,6 +3226,9 @@ The name is compared with the field name using TESTFN (defaults to `equal')."
|
||||
("C-c k" . khard-insert-email-contact))
|
||||
:init
|
||||
(require 'mu4e)
|
||||
(evil-define-key '(normal motion) mu4e-headers-mode-map
|
||||
"j" #'next-line
|
||||
"k" #'previous-line)
|
||||
(evil-define-key '(normal motion) mu4e-main-mode-map "q" #'bury-buffer)
|
||||
(evil-define-key '(normal motion) mu4e-view-mode-map
|
||||
"gy" #'mu4e-view-save-url
|
||||
@@ -3266,7 +3277,7 @@ This is the same as `evil-ret' except that it works for links in
|
||||
(concat "flag:unread AND NOT flag:trashed AND NOT "
|
||||
"maildir:/protonmail/Trash AND NOT maildir:/protonmail/Spam AND NOT "
|
||||
"maildir:/ucsc-gmail/[Gmail]/Trash AND NOT "
|
||||
"maildir:/ucsc-gmail/[Gmail]/Spam")
|
||||
"maildir:/ucsc-gmail/[Gmail]/Spam AND NOT maildir:\"/ucsc-gmail/[Gmail]/All Mail\"")
|
||||
"Flag for mail which will appear as \"unread\" and will be notified.")
|
||||
(setq message-kill-buffer-on-exit t
|
||||
message-confirm-send t
|
||||
@@ -3305,7 +3316,7 @@ This is the same as `evil-ret' except that it works for links in
|
||||
(mu4e-sent-folder . "/protonmail/Sent")
|
||||
(mu4e-drafts-folder . "/protonmail/Drafts")
|
||||
(mu4e-trash-folder . "/protonmail/Trash")
|
||||
(mu4e-sent-messages-behavior . delete)))
|
||||
(mu4e-sent-messages-behavior . sent)))
|
||||
(make-mu4e-context
|
||||
:name "School"
|
||||
:match-func (lambda (msg)
|
||||
|
||||
Reference in New Issue
Block a user