Skip to content

Commit

Permalink
Use C-c C-j for inserting list items, like AUCTeX
Browse files Browse the repository at this point in the history
Since C-c C-j was used for `markdown-jump` (for moving between reference
link/footnote markers and their definitions), it has been changed to
C-c C-l (think "leap" or "loop" instead of jump). It's also close to
C-c C-o (used for opening links).
  • Loading branch information
jrblevin committed Jan 16, 2016
1 parent 4420433 commit 3bf565b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ keybindings by pressing <kbd>C-c C-h</kbd>.
or in the other window with the <kbd>C-u</kbd> prefix). Use <kbd>M-p</kbd> and
<kbd>M-n</kbd> to quickly jump to the previous or next link of any type.

* Jumping: <kbd>C-c C-j</kbd>
* Jumping: <kbd>C-c C-l</kbd>

Use <kbd>C-c C-j</kbd> to jump from the object at point to its counterpart
Use <kbd>C-c C-l</kbd> to jump from the object at point to its counterpart
elsewhere in the text, when possible. Jumps between reference
links and definitions; between footnote markers and footnote
text. If more than one link uses the same reference name, a
Expand Down Expand Up @@ -298,8 +298,8 @@ keybindings by pressing <kbd>C-c C-h</kbd>.

* Editing Lists: <kbd>M-RET</kbd>, <kbd>M-UP</kbd>, <kbd>M-DOWN</kbd>, <kbd>M-LEFT</kbd>, and <kbd>M-RIGHT</kbd>

New list items can be inserted with <kbd>M-RET</kbd>. This command
determines the appropriate marker (one of the possible
New list items can be inserted with <kbd>M-RET</kbd> or <kbd>C-c C-j</kbd>. This
command determines the appropriate marker (one of the possible
unordered list markers or the next number in sequence for an
ordered list) and indentation level by examining nearby list
items. If there is no list before or after the point, start a
Expand Down
11 changes: 6 additions & 5 deletions markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@
;; or in the other window with the `C-u` prefix). Use `M-p` and
;; `M-n` to quickly jump to the previous or next link of any type.
;;
;; * Jumping: `C-c C-j`
;; * Jumping: `C-c C-l`
;;
;; Use `C-c C-j` to jump from the object at point to its counterpart
;; Use `C-c C-l` to jump from the object at point to its counterpart
;; elsewhere in the text, when possible. Jumps between reference
;; links and definitions; between footnote markers and footnote
;; text. If more than one link uses the same reference name, a
Expand Down Expand Up @@ -350,8 +350,8 @@
;;
;; * Editing Lists: `M-RET`, `M-UP`, `M-DOWN`, `M-LEFT`, and `M-RIGHT`
;;
;; New list items can be inserted with `M-RET`. This command
;; determines the appropriate marker (one of the possible
;; New list items can be inserted with `M-RET` or `C-c C-j`. This
;; command determines the appropriate marker (one of the possible
;; unordered list markers or the next number in sequence for an
;; ordered list) and indentation level by examining nearby list
;; items. If there is no list before or after the point, start a
Expand Down Expand Up @@ -4082,7 +4082,7 @@ Assumes match data is available for `markdown-regex-italic'."
(define-key map (kbd "C-c C-]") 'markdown-complete)
;; Following and Jumping
(define-key map (kbd "C-c C-o") 'markdown-follow-thing-at-point)
(define-key map (kbd "C-c C-j") 'markdown-jump)
(define-key map (kbd "C-c C-l") 'markdown-jump)
;; Indentation
(define-key map (kbd "C-m") 'markdown-enter-key)
(define-key map (kbd "DEL") 'markdown-exdent-or-delete)
Expand Down Expand Up @@ -4116,6 +4116,7 @@ Assumes match data is available for `markdown-regex-italic'."
(define-key map (kbd "M-<left>") 'markdown-promote)
(define-key map (kbd "M-<right>") 'markdown-demote)
(define-key map (kbd "M-<return>") 'markdown-insert-list-item)
(define-key map (kbd "C-c C-j") 'markdown-insert-list-item)
;; Subtree editing
(define-key map (kbd "M-S-<up>") 'markdown-move-subtree-up)
(define-key map (kbd "M-S-<down>") 'markdown-move-subtree-down)
Expand Down

0 comments on commit 3bf565b

Please sign in to comment.