(with-temp-message ""
(basic-save-buffer)))))
-(defun my-as-off ()
+;; in the message-send-and-exit advice, got an error because it passed an arg.
+;; didn't look into why, just add ignored args.
+(defun my-as-off (&rest ignore)
(interactive)
(setq my-as nil))
-(defun my-as-off-local ()
+(defun my-as-off-local (&rest ignore)
(interactive)
(setq-local my-as nil))
-(defun my-as-on ()
+(defun my-as-on (&rest ignore)
(interactive)
(setq my-as t))
-(defun my-as-on-local ()
+(defun my-as-on-local (&rest ignore)
(interactive)
(setq-local my-as on))
;; (setq mu4e-headers-results-limit 2000)
-(setq send-mail-function (quote sendmail-send-it) ;; common to gnus also
+(setq
+;; common to gnus. default sendmail-query-once asks us, then sets this via customize.
+send-mail-function (quote sendmail-send-it)
;; use the standard imap folders
mu4e-sent-folder "/Sent"
mu4e-drafts-folder "/Drafts"
mu4e-headers-fields (delq (assoc :mailing-list mu4e-headers-fields) mu4e-headers-fields)
;; default 500.
mu4e-headers-results-limit 1000
+ ;; tell exim to use from: as envelope from.
+ ;; exim's default is use outgoing_msg_localpart@hostname.
+ mail-specify-envelope-from t
;; looking up the list of maildirs when doing jo from summary
;; can take a few seconds if we have a ton of messages.
* misc general settings
#+begin_src emacs-lisp
-
+(setq sh-basic-offset 2)
(setq vc-follow-symlinks t)
;; give us a shell to start instead of scratch
#+RESULTS:
: t
+
* zrc
#+begin_src emacs-lisp
(require 'znc)
+(defun chirp()
+ (interactive)
+ (start-process-shell-command "ignoreme" nil "mpv --no-terminal --vo=null --volume=50 /a/bin/data/bird.mp3"))
;; from https://www.emacswiki.org/emacs/ErcSound
(defun erc-my-privmsg-sound (proc parsed)
(let* ((tgt (car (erc-response.command-args parsed)))
(privp (erc-current-nick-p tgt)))
(and
- privp
- (start-process-shell-command "ignoreme" nil "mpv --no-terminal --vo=null --volume=25 /a/bin/data/bird.mp3")
+ privp (chirp)
+
;; We must return nil. See help for `erc-server-PRIVMSG-functions'
nil)))
(add-hook 'erc-server-PRIVMSG-functions