[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 79/117: Allow repeated visual beginning/end of line
From: |
Matthew Fidler |
Subject: |
[elpa] 79/117: Allow repeated visual beginning/end of line |
Date: |
Fri, 25 Jul 2014 13:24:24 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 6742fe07381fde1468112f399db6c6e9a12f42d4
Author: Matthew L. Fidler <address@hidden>
Date: Mon Jul 21 15:40:34 2014 -0500
Allow repeated visual beginning/end of line
---
ergoemacs-functions.el | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index 1e4c7b0..075a427 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -730,8 +730,11 @@ the prefix arguments of `beginning-of-buffer',
;; (setq prefix-arg nil)
(setq current-prefix-arg nil)
(ergoemacs-shortcut-remap 'move-beginning-of-line)
- ;; (setq this-command 'move-beginning-of-line)
- (push (point) pts))
+ (push (point) pts)
+ (when (and (not (bolp)) (not (bobp)))
+ (backward-char 1)
+ (ergoemacs-shortcut-remap 'move-beginning-of-line)
+ (push (point) pts)))
(when ergoemacs-back-to-indentation
(save-excursion
(back-to-indentation)
@@ -853,7 +856,13 @@ the prefix arguments of `end-of-buffer',
(setq current-prefix-arg nil)
(save-excursion
(ergoemacs-shortcut-remap 'move-end-of-line)
- (push (point) pts))
+ (push (point) pts)
+ ;; Support visual lines mode and allow going to the next
+ ;; end of the visual line...
+ (when (and (not (eolp)) (not (eobp)))
+ (forward-char 1)
+ (ergoemacs-shortcut-remap 'move-end-of-line)
+ (push (point) pts)))
(when ergoemacs-end-of-comment-line
(save-excursion
;; See http://www.emacswiki.org/emacs/EndOfLineNoComments
- [elpa] 71/117: Use flat keymaps (start supporting emacs 23?), (continued)
- [elpa] 71/117: Use flat keymaps (start supporting emacs 23?), Matthew Fidler, 2014/07/25
- [elpa] 73/117: Try to make compatible with emacs 23, Matthew Fidler, 2014/07/25
- [elpa] 74/117: Remove debugging for iswitch-buffer, Matthew Fidler, 2014/07/25
- [elpa] 65/117: Allow hooks to be run before modifying keymaps, Matthew Fidler, 2014/07/25
- [elpa] 75/117: Declare some of the package functions to compile cleanly on Emacs 23, Matthew Fidler, 2014/07/25
- [elpa] 76/117: Add toggle component, Matthew Fidler, 2014/07/25
- [elpa] 78/117: Fix visual line support, Matthew Fidler, 2014/07/25
- [elpa] 77/117: Take out the toggling of the themes, Matthew Fidler, 2014/07/25
- [elpa] 68/117: Use remaps more, Matthew Fidler, 2014/07/25
- [elpa] 81/117: Fix apps-toggle. Apparently the other method was mispecified, Matthew Fidler, 2014/07/25
- [elpa] 79/117: Allow repeated visual beginning/end of line,
Matthew Fidler <=
- [elpa] 80/117: Dont flatten keymaps, Matthew Fidler, 2014/07/25
- [elpa] 82/117: Remove ergoemacs-mode from custom set vars, Matthew Fidler, 2014/07/25
- [elpa] 86/117: Clear local ergoemacs-mode read-key captures, Matthew Fidler, 2014/07/25
- [elpa] 85/117: Fix cut and copy issues, Matthew Fidler, 2014/07/25
- [elpa] 83/117: Handle menu-bar when flattening keymaps., Matthew Fidler, 2014/07/25
- [elpa] 88/117: Add non-defined functions to map, Matthew Fidler, 2014/07/25
- [elpa] 89/117: Fix byte compile warning, Matthew Fidler, 2014/07/25
- [elpa] 91/117: Fix remaps to not use shortcuts, Matthew Fidler, 2014/07/25
- [elpa] 92/117: Remove local read-key reset; Shouldn't be needed, Matthew Fidler, 2014/07/25
- [elpa] 90/117: Hack to make search-reg work. Should work normally :(, Matthew Fidler, 2014/07/25