Skip to content

Commit

Permalink
Added personalisations file
Browse files Browse the repository at this point in the history
  • Loading branch information
schallis committed Jul 11, 2011
1 parent d305a26 commit 2c240de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions stevechallis.el
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@
(remq 'process-kill-buffer-query-function
kill-buffer-query-functions))

;; Line duplication function and key binding
(defun eemklinks-duplicate-this-line ()
"Duplicate the current line (without any changes to the kill ring)."
(interactive)
(let ((line (buffer-substring (line-beginning-position) (line-end-position))))
(save-excursion (beginning-of-line) (insert-before-markers line "\n"))))

(global-set-key (kbd "C-c d") 'eemklinks-duplicate-this-line)

;;
;;
;; YAsnippet
Expand Down

0 comments on commit 2c240de

Please sign in to comment.