From ea42dc1161c998604709a54e8e3d34aad790fe38 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Thu, 5 Jul 2018 16:22:16 -0400 Subject: [PATCH] Make ecb selction work with the mouse like every other IDE sidebar ever, with the left mouse button --- .spacemacs.d/init.el | 53 ++++++++++++++++++++++++--- .spacemacs.d/spacemacs-user-config.el | 1 - 2 files changed, 47 insertions(+), 7 deletions(-) diff --git a/.spacemacs.d/init.el b/.spacemacs.d/init.el index 4e257b1..6910cba 100644 --- a/.spacemacs.d/init.el +++ b/.spacemacs.d/init.el @@ -20,15 +20,56 @@ '(ecb-auto-activate t) '(ecb-auto-expand-tag-tree (quote all)) '(ecb-auto-update-methods-after-save t) - '(ecb-major-modes-show-or-hide (quote ((typescript php web mardown)))) '(ecb-methods-nodes-collapse-spec nil) '(ecb-non-semantic-methods-initial-expand nil) '(ecb-options-version "2.50") '(ecb-show-only-positioned-tags t) - '(ecb-tag-visit-post-actions + '(ecb-show-tags (quote - ((default ecb-tag-visit-smart-tag-start ecb-tag-visit-highlight-tag-header ecb-tag-visit-recenter ecb-tag-visit-smart-tag-start) - (php-mode ecb-tag-visit-goto-doc-start)))) + ((default + (include collapsed nil) + (parent expanded nil) + (type expanded nil) + (variable expanded access) + (function expanded access) + (label expanded nil) + (t expanded nil) + (alias hidden nil)) + (c++-mode + (include collapsed nil) + (parent collapsed nil) + (type flattened nil) + (variable collapsed access) + (function flattened access) + (function collapsed access) + (label hidden nil) + (t collapsed nil)) + (c-mode + (include collapsed nil) + (parent collapsed nil) + (type flattened nil) + (variable collapsed access) + (function flattened access) + (function collapsed access) + (label hidden nil) + (t collapsed nil)) + (bovine-grammar-mode + (keyword collapsed name) + (token collapsed name) + (nonterminal flattened name) + (rule flattened name) + (t collapsed nil)) + (wisent-grammar-mode + (keyword collapsed name) + (token collapsed name) + (nonterminal flattened name) + (rule flattened name) + (t collapsed nil)) + (texinfo-mode + (section flattened nil) + (def collapsed name) + (t collapsed nil))))) '(ecb-tip-of-the-day nil) - '(ecb-tree-navigation-by-arrow nil)) - + '(ecb-tree-navigation-by-arrow nil) + '(ecb-primary-secondary-mouse-buttons (quote mouse-1--C-mouse-1)) + ) diff --git a/.spacemacs.d/spacemacs-user-config.el b/.spacemacs.d/spacemacs-user-config.el index ae435f9..21bfca3 100644 --- a/.spacemacs.d/spacemacs-user-config.el +++ b/.spacemacs.d/spacemacs-user-config.el @@ -12,7 +12,6 @@ you should place your code here." (setq neo-theme (if (display-graphic-p) 'icons 'arrow)) (setq neo-vc-integration '(face)) - ;; Use typescript mode for js/jsx too (add-hook 'before-save-hook 'tide-format-before-save) (setq tide-format-options