Skip to content

Instantly share code, notes, and snippets.

@fxn
Created November 23, 2011 19:27
Show Gist options
  • Save fxn/1389637 to your computer and use it in GitHub Desktop.
Save fxn/1389637 to your computer and use it in GitHub Desktop.
;;
;; Custom Defuns ---------------------------------------------------------------
;;
(defun fxn-find-init-file ()
(interactive)
(find-file "~/.emacs.d/init.el"))
(global-set-key (kbd "C-c i") 'fxn-find-init-file)
(defun fxn-kill-whole-line ()
(interactive)
(move-beginning-of-line nil)
(kill-line)
(kill-line))
(global-set-key (kbd "C-c k") 'fxn-kill-whole-line)
(defun fxn-dashes ()
(interactive)
(let ((n (- fill-column (current-column))))
(if (< 0 n)
(insert-char ?- n))))
(global-set-key (kbd "C-c d") 'fxn-dashes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment