[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 251/287: Modify copy-line-or-region to work with `org-mode`
From: |
Matthew Fidler |
Subject: |
[elpa] 251/287: Modify copy-line-or-region to work with `org-mode` |
Date: |
Wed, 02 Jul 2014 14:46:25 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 0adf87e8922282f51b82b2e628f7c3212965d903
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jun 27 10:04:21 2014 -0500
Modify copy-line-or-region to work with `org-mode`
---
ergoemacs-functions.el | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index e0c8c39..a3d6968 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -315,7 +315,17 @@ If `narrow-to-region' is in effect, then cut that region
only."
((region-active-p)
(kill-ring-save (region-beginning) (region-end)))
(t
- (kill-ring-save (line-beginning-position) (line-beginning-position 2))))
+ ;; Hack away to support `org-mode' folded reg
+ (kill-ring-save
+ (save-excursion
+ (ergoemacs-shortcut-remap 'move-beginning-of-line)
+ (when (not (bolp))
+ (beginning-of-line))
+ (point))
+ (save-excursion
+ (ergoemacs-shortcut-remap 'move-end-of-line)
+ (call-interactively 'move-end-of-line)
+ (point)))))
(deactivate-mark))
(declare-function cua-cut-region "cua-base.el")
- [elpa] 244/287: Bug fix for cutting folded lines at the end of the line., (continued)
- [elpa] 244/287: Bug fix for cutting folded lines at the end of the line., Matthew Fidler, 2014/07/02
- [elpa] 246/287: Prefer emacs 24.4 backward-up-list, Matthew Fidler, 2014/07/02
- [elpa] 249/287: Support smartparens-mode and auto-indent-mode, Matthew Fidler, 2014/07/02
- [elpa] 247/287: Revert ergoemacs-select-text-in-quote; Make expand-region consistent, Matthew Fidler, 2014/07/02
- [elpa] 245/287: Add back reduced font-lock free ergoemacs-select-text-in-ascii-quote, Matthew Fidler, 2014/07/02
- [elpa] 255/287: Make beginning/end of line work without font-lock, Matthew Fidler, 2014/07/02
- [elpa] 253/287: Another fix for end of line or what, Matthew Fidler, 2014/07/02
- [elpa] 257/287: Fix byte-compile errors, Matthew Fidler, 2014/07/02
- [elpa] 250/287: Comment out autopair; needs to go in options menu..., Matthew Fidler, 2014/07/02
- [elpa] 256/287: Add version information for themes, Matthew Fidler, 2014/07/02
- [elpa] 251/287: Modify copy-line-or-region to work with `org-mode`,
Matthew Fidler <=
- [elpa] 258/287: Silence customize save with batch emacs., Matthew Fidler, 2014/07/02
- [elpa] 252/287: sort layouts alphabetically, Matthew Fidler, 2014/07/02
- [elpa] 260/287: Make sure `ergoemacs-hook-functions` is non-nil, Matthew Fidler, 2014/07/02
- [elpa] 259/287: Move saving last closed buffer to ergoemacs-theme, Matthew Fidler, 2014/07/02
- [elpa] 254/287: Add test for begining and ending of line, Matthew Fidler, 2014/07/02
- [elpa] 264/287: fix a typo, Matthew Fidler, 2014/07/02
- [elpa] 268/287: Run all ergoemacs- tests, Matthew Fidler, 2014/07/02
- [elpa] 265/287: More Robust ergoemacs-end-of-line-or-what (passes noninteractive test), Matthew Fidler, 2014/07/02
- [elpa] 269/287: Add autoload cookie to ergoemacs-test-layout, Matthew Fidler, 2014/07/02
- [elpa] 266/287: Make apps-copy test use C-a, Matthew Fidler, 2014/07/02