12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- ;;; Code:
- ;;this lets you use the windmove commands inside an info buffer!!!! sooo cool!
- (require 'info)
- (define-key Info-mode-map (kbd "C-w h") 'windmove-down)
- (define-key Info-mode-map (kbd "C-w t") 'windmove-up)
- (define-key Info-mode-map (kbd "C-w n") 'windmove-left)
- (define-key Info-mode-map (kbd "C-w s") 'windmove-right)
- ;; it would be awesome to make org-bullets be enabled on info files
- ;; (require 'org-bullets)
- ;; (add-hook 'Info-mode-hook '(lambda ()
- ;; (org-bullets-mode 1))
- ;; I might use this at some point, but eh it seems like it needs some work.
- ;; (use-package niceify-info
- ;; :config (add-hook 'Info-selection-hook #'niceify-info))
- (defhydra hydra-info (:color blue
- :hint nil)
- "
- Info-mode:
- ^^_]_ forward (next logical node) ^^_l_ast (←) _u_p (↑) _f_ollow reference _T_OC
- ^^_[_ backward (prev logical node) ^^_r_eturn (→) _m_enu (↓) (C-u for new window) _i_ndex _d_irectory
- ^^_n_ext (same level only) ^^_H_istory _g_oto (C-u for new window) _,_ next index item _c_opy node name
- ^^_p_rev (same level only) _<_/_t_op _b_eginning of buffer virtual _I_ndex _C_lone buffer
- regex _s_earch (_S_ case sensitive) ^^_>_ final _e_nd of buffer ^^ _a_propos
- _1_ .. _9_ Pick first .. ninth item in the node's menu.
- "
- ("]" Info-forward-node)
- ("[" Info-backward-node)
- ("n" Info-next)
- ("p" Info-prev)
- ("s" Info-search)
- ("S" Info-search-case-sensitively)
- ("l" Info-history-back)
- ("r" Info-history-forward)
- ("H" Info-history)
- ("t" Info-top-node)
- ("<" Info-top-node)
- (">" Info-final-node)
- ("u" Info-up)
- ("^" Info-up)
- ("m" Info-menu)
- ("g" Info-goto-node)
- ("b" beginning-of-buffer)
- ("e" end-of-buffer)
- ("f" Info-follow-reference)
- ("i" Info-index)
- ("," Info-index-next)
- ("I" Info-virtual-index)
- ("T" Info-toc)
- ("d" Info-directory)
- ("c" Info-copy-current-node-name)
- ("C" clone-buffer)
- ("a" info-apropos)
- ("1" Info-nth-menu-item)
- ("2" Info-nth-menu-item)
- ("3" Info-nth-menu-item)
- ("4" Info-nth-menu-item)
- ("5" Info-nth-menu-item)
- ("6" Info-nth-menu-item)
- ("7" Info-nth-menu-item)
- ("8" Info-nth-menu-item)
- ("9" Info-nth-menu-item)
- ("?" Info-summary "Info summary")
- ("h" Info-help "Info help")
- ("q" Info-exit "Info exit")
- ("C-g" nil "cancel" :color blue))
- (provide 'init-info)
|