- How to abort a git merge? #git
git reset --hard HEAD
- How to mail your agenda files? #emacs #org #cli
add to .gnus
(defun org-mail ()
"Send mail of agenda to myself."
(org-batch-agenda "a")
(let ((str (buffer-string)))
(compose-mail diary-mail-addr "agenda")
(insert str)
(call-interactively (get mail-user-agent 'sendfunc))))
emacs agenda bash command
emacs \
--batch \
--load ~/.emacs.d/init.el \
--load ~/.emacs.d/.gnus \
--funcall org-mail\
- How to enable windows emacs to use unix utilities? #emacs #windows
http://gregorygrubbs.com/emacs/10-tips-emacs-windows/
(if (file-directory-p "c:/cygwin/bin")
(add-to-list 'exec-path "c:/cygwin/bin"))
(setq shell-file-name "bash")
(setq explicit-shell-file-name shell-file-name)
Remove the partition table.
dd if=/dev/zero of=/dev/sda bs=446 count=1