init-info.el 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ;;; Code:
  2. ;;this lets you use the windmove commands inside an info buffer!!!! sooo cool!
  3. (require 'info)
  4. (define-key Info-mode-map (kbd "C-w h") 'windmove-down)
  5. (define-key Info-mode-map (kbd "C-w t") 'windmove-up)
  6. (define-key Info-mode-map (kbd "C-w n") 'windmove-left)
  7. (define-key Info-mode-map (kbd "C-w s") 'windmove-right)
  8. ;; it would be awesome to make org-bullets be enabled on info files
  9. ;; (require 'org-bullets)
  10. ;; (add-hook 'Info-mode-hook '(lambda ()
  11. ;; (org-bullets-mode 1))
  12. ;; I might use this at some point, but eh it seems like it needs some work.
  13. ;; (use-package niceify-info
  14. ;; :config (add-hook 'Info-selection-hook #'niceify-info))
  15. (defhydra hydra-info (:color blue
  16. :hint nil)
  17. "
  18. Info-mode:
  19. ^^_]_ forward (next logical node) ^^_l_ast (←) _u_p (↑) _f_ollow reference _T_OC
  20. ^^_[_ backward (prev logical node) ^^_r_eturn (→) _m_enu (↓) (C-u for new window) _i_ndex _d_irectory
  21. ^^_n_ext (same level only) ^^_H_istory _g_oto (C-u for new window) _,_ next index item _c_opy node name
  22. ^^_p_rev (same level only) _<_/_t_op _b_eginning of buffer virtual _I_ndex _C_lone buffer
  23. regex _s_earch (_S_ case sensitive) ^^_>_ final _e_nd of buffer ^^ _a_propos
  24. _1_ .. _9_ Pick first .. ninth item in the node's menu.
  25. "
  26. ("]" Info-forward-node)
  27. ("[" Info-backward-node)
  28. ("n" Info-next)
  29. ("p" Info-prev)
  30. ("s" Info-search)
  31. ("S" Info-search-case-sensitively)
  32. ("l" Info-history-back)
  33. ("r" Info-history-forward)
  34. ("H" Info-history)
  35. ("t" Info-top-node)
  36. ("<" Info-top-node)
  37. (">" Info-final-node)
  38. ("u" Info-up)
  39. ("^" Info-up)
  40. ("m" Info-menu)
  41. ("g" Info-goto-node)
  42. ("b" beginning-of-buffer)
  43. ("e" end-of-buffer)
  44. ("f" Info-follow-reference)
  45. ("i" Info-index)
  46. ("," Info-index-next)
  47. ("I" Info-virtual-index)
  48. ("T" Info-toc)
  49. ("d" Info-directory)
  50. ("c" Info-copy-current-node-name)
  51. ("C" clone-buffer)
  52. ("a" info-apropos)
  53. ("1" Info-nth-menu-item)
  54. ("2" Info-nth-menu-item)
  55. ("3" Info-nth-menu-item)
  56. ("4" Info-nth-menu-item)
  57. ("5" Info-nth-menu-item)
  58. ("6" Info-nth-menu-item)
  59. ("7" Info-nth-menu-item)
  60. ("8" Info-nth-menu-item)
  61. ("9" Info-nth-menu-item)
  62. ("?" Info-summary "Info summary")
  63. ("h" Info-help "Info help")
  64. ("q" Info-exit "Info exit")
  65. ("C-g" nil "cancel" :color blue))
  66. (provide 'init-info)