Skip to content

Latest commit

 

History

History
64 lines (52 loc) · 2.75 KB

info.org

File metadata and controls

64 lines (52 loc) · 2.75 KB

❮ Back to Casual

Casual Info

An opinionated Transient-based user interface for the Emacs Info reader.

images/casual-info-screenshot.png

Install

If installed via MELPA then add these lines to your Emacs initialization file with your binding of preference.

(require 'casual-info) ; optional if using autoloaded menu
(keymap-set Info-mode-map "C-o" #'casual-info-tmenu)

Customization

While not required, adding this configuration to your Emacs initialization file will synchronize keybindings between Casual Info and the Info reader. A nice visual improvement is to use hl-line-mode to highlight the line where the cursor is at. Enabling scroll-lock-mode will enable scrolling the buffer for content that is larger than its window size with the navigation keys.

;; # Info
;; Use web-browser history navigation bindings
(keymap-set Info-mode-map "M-[" #'Info-history-back)
(keymap-set Info-mode-map "M-]" #'Info-history-forward)
;; Bind p and n to paragraph navigation
(keymap-set Info-mode-map "p" #'casual-info-browse-backward-paragraph)
(keymap-set Info-mode-map "n" #'casual-info-browse-forward-paragraph)
;; Bind h and l to navigate to previous and next nodes
;; Bind j and k to navigate to next and previous references
(keymap-set Info-mode-map "h" #'Info-prev)
(keymap-set Info-mode-map "j" #'Info-next-reference)
(keymap-set Info-mode-map "k" #'Info-prev-reference)
(keymap-set Info-mode-map "l" #'Info-next)
;; Bind / to search
(keymap-set Info-mode-map "/" #'Info-search)
;; Set Bookmark
(keymap-set Info-mode-map "B" #'bookmark-set)

(add-hook 'Info-mode-hook #'hl-line-mode)
(add-hook 'Info-mode-hook #'scroll-lock-mode)

Usage

  1. Invoke M-x info to launch the Info reader.
  2. When the point is in the Info window, invoke C-o (or a binding of your choosing) to launch the Casual Info menu.

Unicode Symbol Support

By enabling “Use Unicode Symbols” from the Settings menu, Casual Info will use Unicode symbols as appropriate in its menus.

Sponsorship

If you enjoy using Casual Info, consider making a modest financial contribution to help support its development and maintenance.

images/default-yellow.png

See Also