home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fbd69022056991581e62f713e387744d1ebcc659
parent f042c7f63fa2a68a266b140c628899fd869e2001
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 11 Jun 2020 11:25:48 +0200

tools/emacs: move imenu to navigating…

… because it's about navigation..

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-editing.el | 34----------------------------------
Mtools/emacs/config/config-navigating.el | 34++++++++++++++++++++++++++++++++++
Musers/vincent/dev/mr/src.github.openshift.mr | 1+
3 files changed, 35 insertions(+), 34 deletions(-)

diff --git a/tools/emacs/config/config-editing.el b/tools/emacs/config/config-editing.el @@ -254,39 +254,5 @@ instead. This command can then be followed by the standard :commands (htmlize-paste-it) :bind ("C-c e p" . htmlize-paste-it)) -(use-package imenu - :config - (setq-default imenu-use-markers t - imenu-auto-rescan t - imenu-auto-rescan-maxout 600000 - imenu-max-item-length 100 - imenu-use-popup-menu nil - imenu-eager-completion-buffer t - imenu-space-replacement " " - imenu-level-separator "/") - - (defun prot/imenu-vertical () - "Use a vertical Icomplete layout for `imenu'. -Also configure the value of `orderless-matching-styles' to avoid -aggressive fuzzy-style matching for this particular command." - (interactive) - (let ((orderless-matching-styles ; make sure to check `orderless' - '(orderless-literal - orderless-regexp - orderless-prefixes))) - (icomplete-vertical-do (:height (/ (frame-height) 4)) - (call-interactively 'imenu)))) - - :hook ((imenu-after-jump-hook . (lambda () - (when (and (eq major-mode 'org-mode) - (org-at-heading-p)) - (org-show-entry) - (org-reveal t))))) - :bind ("C-'" . prot/imenu-vertical)) - -(use-package flimenu - :config - (flimenu-global-mode 1)) - (provide 'config-editing) ;;; config-editing.el ends here diff --git a/tools/emacs/config/config-navigating.el b/tools/emacs/config/config-navigating.el @@ -46,5 +46,39 @@ (setq-default dumb-jump-use-visible-window t dumb-jump-prefer-searcher 'rg)) +(use-package imenu + :config + (setq-default imenu-use-markers t + imenu-auto-rescan t + imenu-auto-rescan-maxout 600000 + imenu-max-item-length 100 + imenu-use-popup-menu nil + imenu-eager-completion-buffer t + imenu-space-replacement " " + imenu-level-separator "/") + + (defun prot/imenu-vertical () + "Use a vertical Icomplete layout for `imenu'. +Also configure the value of `orderless-matching-styles' to avoid +aggressive fuzzy-style matching for this particular command." + (interactive) + (let ((orderless-matching-styles ; make sure to check `orderless' + '(orderless-literal + orderless-regexp + orderless-prefixes))) + (icomplete-vertical-do (:height (/ (frame-height) 4)) + (call-interactively 'imenu)))) + + :hook ((imenu-after-jump-hook . (lambda () + (when (and (eq major-mode 'org-mode) + (org-at-heading-p)) + (org-show-entry) + (org-reveal t))))) + :bind ("C-'" . prot/imenu-vertical)) + +(use-package flimenu + :config + (flimenu-global-mode 1)) + (provide 'config-navigating) ;;; config-navigating.el ends here diff --git a/users/vincent/dev/mr/src.github.openshift.mr b/users/vincent/dev/mr/src.github.openshift.mr @@ -1,6 +1,7 @@ include = cat ${HOME}/.config/mr [DEFAULT] +skip = true lib = export BASE_HOST="github.com" export GIT_BASE="github.com:"