diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-05 01:19:30 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-05 01:19:30 -0400 |
| commit | bdf9a71ab7baa2b1de9abcfd5df1a9107a55d141 (patch) | |
| tree | c4524e6c41aa5107211103401dabfaefc81aa882 /.config/emacs/lisp/evil-collection/modes/hideshow | |
| parent | fe3984f541bd32bdfa418afb305b614176b55ca0 (diff) | |
add a bunch of emacs packages HELP
Diffstat (limited to '.config/emacs/lisp/evil-collection/modes/hideshow')
| -rw-r--r-- | .config/emacs/lisp/evil-collection/modes/hideshow/README.org | 11 | ||||
| -rw-r--r-- | .config/emacs/lisp/evil-collection/modes/hideshow/evil-collection-hideshow.el | 45 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.config/emacs/lisp/evil-collection/modes/hideshow/README.org b/.config/emacs/lisp/evil-collection/modes/hideshow/README.org new file mode 100644 index 0000000..5599606 --- /dev/null +++ b/.config/emacs/lisp/evil-collection/modes/hideshow/README.org @@ -0,0 +1,11 @@ +* hideshow + + Evil bindings for [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Hideshow.html][hideshow]] (=hs-minor-mode=). Standard fold operations + (=zo=, =zc=, =zr=, =zm=, =zR=, =zM=, =za=) are provided by evil itself via + =evil-fold-list=; this module adds the missing level-hide binding. + +** Key bindings + + | Command | Original | Evil | + |-----------------+-------------+------| + | =hs-hide-level= | =C-c @ C-l= | =zL= | diff --git a/.config/emacs/lisp/evil-collection/modes/hideshow/evil-collection-hideshow.el b/.config/emacs/lisp/evil-collection/modes/hideshow/evil-collection-hideshow.el new file mode 100644 index 0000000..ba27d84 --- /dev/null +++ b/.config/emacs/lisp/evil-collection/modes/hideshow/evil-collection-hideshow.el @@ -0,0 +1,45 @@ +;;; evil-collection-hideshow --- Bindings for `hideshow' -*- lexical-binding: t; -*- + +;; Copyright (C) 2025 Julian Hoch + +;; Author: Julian Hoch <julianhoch@web.de> +;; Maintainer: Julian Hoch <julianhoch@web.de> +;; Created: 2025-09-27 +;; Keywords: evil, emacs, tools +;; URL: https://github.com/emacs-evil/evil-collection + +;; This file is not part of GNU Emacs. + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see <http://www.gnu.org/licenses/>. + +;;; Commentary: +;;; Bindings for `hideshow'. + +;;; Code: +(require 'evil-collection) +(require 'hideshow nil t) + +(declare-function hs-hide-level "hideshow") +(defvar hs-minor-mode-map) +(defconst evil-collection-hideshow-maps '(hs-minor-mode-map)) + +;;;###autoload +(defun evil-collection-hideshow-setup () + "Set up `evil' bindings for `hideshow'." + (evil-set-initial-state 'hs-minor-mode 'normal) + (evil-collection-define-key 'normal 'hs-minor-mode-map + "zL" 'hs-hide-level)) + +(provide 'evil-collection-hideshow) +;;; evil-collection-hideshow.el ends here |
