Skip to content

Instantly share code, notes, and snippets.

@omps
Last active March 30, 2016 11:05
Show Gist options
  • Save omps/250fa70def221cbc45bcce49b41271aa to your computer and use it in GitHub Desktop.
Save omps/250fa70def221cbc45bcce49b41271aa to your computer and use it in GitHub Desktop.
Tips and triks
  • 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)
@omps
Copy link
Author

omps commented Mar 30, 2016

Remove the partition table.
dd if=/dev/zero of=/dev/sda bs=446 count=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment