Don't forget to autoload

This commit is contained in:
Magnar Sveen 2012-08-02 10:37:03 +02:00
parent b912bf80b1
commit b2906bb329
2 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@
(require 'multiple-cursors-core) (require 'multiple-cursors-core)
;;;###autoload
(defun mc/edit-lines () (defun mc/edit-lines ()
"Add one cursor to each line of the active region. "Add one cursor to each line of the active region.
Starts from mark and moves in straight down or up towards the Starts from mark and moves in straight down or up towards the
@ -49,6 +50,7 @@ mark-multiple if point and mark is on different columns."
(funcall navigation-func)) (funcall navigation-func))
(multiple-cursors-mode))) (multiple-cursors-mode)))
;;;###autoload
(defun mc/edit-ends-of-lines () (defun mc/edit-ends-of-lines ()
"Add one cursor to the end of each line in the active region." "Add one cursor to the end of each line in the active region."
(interactive) (interactive)
@ -56,6 +58,7 @@ mark-multiple if point and mark is on different columns."
(mc/execute-command-for-all-fake-cursors 'end-of-line) (mc/execute-command-for-all-fake-cursors 'end-of-line)
(end-of-line)) (end-of-line))
;;;###autoload
(defun mc/edit-beginnings-of-lines () (defun mc/edit-beginnings-of-lines ()
"Add one cursor to the beginning of each line in the active region." "Add one cursor to the beginning of each line in the active region."
(interactive) (interactive)

View File

@ -45,6 +45,7 @@
(deactivate-mark)) (deactivate-mark))
;; Bind this to a key (for instance H-SPC) to start rectangular-region-mode ;; Bind this to a key (for instance H-SPC) to start rectangular-region-mode
;;;###autoload
(defun set-rectangular-region-anchor () (defun set-rectangular-region-anchor ()
(interactive) (interactive)
(set-marker rrm/anchor (point)) (set-marker rrm/anchor (point))