diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-03-25 00:43:04 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-03-25 00:51:06 -0400 |
commit | 41407376f051cd2898fb2a7efaa8778d9365722d (patch) | |
tree | 7841ae60dbde65c8d4172085615049d9ce21d391 /lisp | |
parent | a0c1aa44d778782e05a0681de4bad4979537a001 (diff) | |
download | emacs.d-41407376f051cd2898fb2a7efaa8778d9365722d.tar.gz |
Remove a few functions the are covered by snippets
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-editing.el | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lisp/init-editing.el b/lisp/init-editing.el index fbf959e..15d157d 100644 --- a/lisp/init-editing.el +++ b/lisp/init-editing.el @@ -75,17 +75,6 @@ (define-prefix-command 'insert-map) (global-set-key (kbd "C-c i") 'insert-map) -(defun km/shebang (&optional lang) - (interactive "s\language (default python):") - (if (= (length lang) 0) - (setq lang "python")) - (insert "#!/usr/bin/env " lang "\n")) -(define-key insert-map "s" 'km/shebang) - -(defun km/insert-date () - (interactive) - (insert (format-time-string "%Y-%m-%d"))) - (defun km/toggle-line-or-region-comment () "Comment/uncomment the current line or region" (interactive) @@ -98,21 +87,6 @@ (key-chord-define-global ",c" 'km/toggle-line-or-region-comment) -(defun km/todo-comment () - "Add commented TODO" - (interactive) - (let (beg end) - (if (region-active-p) - (setq beg (region-beginning) end (region-end)) - (setq beg (line-beginning-position) end (line-end-position))) - (unless (comment-only-p beg end) - (beginning-of-line) - (insert "TODO ") - (comment-region beg (+ end 5)) - (forward-line)))) - -(define-key insert-map "d" 'km/insert-date) -(define-key insert-map "t" 'km/todo-comment) (define-key insert-map "i" 'indent-relative) ;; Put multiple cursors map under insert prefix. |