[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 249/287: Support smartparens-mode and auto-indent-mode
From: |
Matthew Fidler |
Subject: |
[elpa] 249/287: Support smartparens-mode and auto-indent-mode |
Date: |
Wed, 02 Jul 2014 14:46:24 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 478703cf31a5ebe9db6c4b798e7e525f1c880772
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jun 27 09:14:44 2014 -0500
Support smartparens-mode and auto-indent-mode
---
ergoemacs-menus.el | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ergoemacs-menus.el b/ergoemacs-menus.el
index b4b616e..86b7e5c 100644
--- a/ergoemacs-menus.el
+++ b/ergoemacs-menus.el
@@ -662,8 +662,19 @@ All other modes are assumed to be minor modes or
unimportant.
(blink-cursor menu-item "Cursor Blink" blink-cursor-mode
:button (:toggle . blink-cursor-mode))
- (electric-pair menu-item "Insert Matching Parentheses/Bracket"
electric-pair-mode
- :button (:toggle . electric-pair-mode))
+ (auto-pair menu-item "Insert Matching Parentheses/Bracket"
+ (lambda() (interactive)
+ (cond
+ ((fboundp 'smartparens-mode)
+ (smartparens-mode))
+ ((fboundp 'autopair-global-mode)
+ (autopair-global-mode))
+ (t (electric-pair-mode))))
+ :button (:toggle .
+ (or
+ (and (boundp 'smartparens-mode)
smartparens-mode)
+ (and (boundp 'auto-indent-mode)
auto-indent-mode)
+ electric-pair-mode)))
(tabbar-mode menu-item "Tabbar" ergoemacs-menu-tabbar-toggle
:button (:toggle . (and (boundp 'tabbar-mode)
- [elpa] 237/287: Expanded outlook integration with Emacs org-mode, (continued)
- [elpa] 237/287: Expanded outlook integration with Emacs org-mode, Matthew Fidler, 2014/07/02
- [elpa] 234/287: Make comment-search-backward less fragile, Matthew Fidler, 2014/07/02
- [elpa] 235/287: Add the uri encoding function, Matthew Fidler, 2014/07/02
- [elpa] 241/287: Cleanup for select text in quotes, Matthew Fidler, 2014/07/02
- [elpa] 243/287: Make the quote selection consistent., Matthew Fidler, 2014/07/02
- [elpa] 242/287: Fix `ergoemacs-select-text-in-ascii-quote` to work using font-lock, Matthew Fidler, 2014/07/02
- [elpa] 239/287: Allow emacs 24.4 differences for backward-up-list, Matthew Fidler, 2014/07/02
- [elpa] 248/287: Merge pull request #248 from akfoss/master, Matthew Fidler, 2014/07/02
- [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 <=
- [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, 2014/07/02
- [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