List of Emacs Hooks

By Xah Lee. Date: . Last updated: .

Here's a complete list of emacs hook variables, as of GNU Emacs 25.0

Note: your list may be shorter or longer, depending on what packages you've loaded.

You can list them in your copy of emacs by:

Alt+x apropos-variable then type “-hook”.

[see Emacs: What's Hook?]

List of Emacs Hooks

  1. Buffer-menu-mode-hook
  2. Info-edit-mode-hook
  3. Info-mode-hook
  4. Info-selection-hook
  5. abbrev-mode-hook
  6. activate-mark-hook
  7. activate-menubar-hook
  8. after-change-major-mode-hook
  9. after-init-hook
  10. after-revert-hook
  11. after-save-hook
  12. after-setting-font-hook
  13. async-bytecomp-package-mode-hook
  14. auto-composition-mode-hook
  15. auto-compression-mode-hook
  16. auto-encryption-mode-hook
  17. auto-fill-mode-hook
  18. auto-lower-mode-hook
  19. auto-raise-mode-hook
  20. auto-revert-load-hook
  21. auto-revert-mode-hook
  22. auto-revert-tail-mode-hook
  23. auto-save-hook
  24. auto-save-mode-hook
  25. awk-mode-hook
  26. bbdb-after-change-hook
  27. before-hack-local-variables-hook
  28. before-init-hook
  29. before-make-frame-hook
  30. before-revert-hook
  31. before-save-hook
  32. bibtex-add-entry-hook
  33. bibtex-clean-entry-hook
  34. bibtex-mode-hook
  35. binary-overwrite-mode-hook
  36. blink-cursor-mode-hook
  37. browse-url-of-file-hook
  38. buffer-list-update-hook
  39. buffer-menu-mode-hook
  40. c++-mode-hook
  41. c-initialization-hook
  42. c-mode-common-hook
  43. c-mode-hook
  44. c-prepare-bug-report-hook
  45. c-prepare-bug-report-hooks
  46. c-special-indent-hook
  47. calendar-initial-window-hook
  48. calendar-load-hook
  49. calendar-mode-hook
  50. calendar-move-hook
  51. calendar-today-invisible-hook
  52. calendar-today-visible-hook
  53. change-log-mode-hook
  54. change-major-mode-after-body-hook
  55. change-major-mode-hook
  56. clone-buffer-hook
  57. clone-indirect-buffer-hook
  58. column-number-mode-hook
  59. comint-exec-hook
  60. comint-mode-hook
  61. compilation-filter-hook
  62. compilation-minor-mode-hook
  63. compilation-mode-hook
  64. compilation-shell-minor-mode-hook
  65. compilation-start-hook
  66. completion-in-region-mode-hook
  67. completion-list-mode-hook
  68. completion-setup-hook
  69. custom-define-hook
  70. cvs-dired-use-hook
  71. deactivate-mark-hook
  72. delay-mode-hooks
  73. delayed-mode-hooks
  74. delayed-warnings-hook
  75. delete-frame-hook
  76. delete-selection-mode-hook
  77. desktop-after-read-hook
  78. desktop-delay-hook
  79. desktop-no-desktop-file-hook
  80. desktop-not-loaded-hook
  81. desktop-save-hook
  82. desktop-save-mode-hook
  83. dframe-after-select-attached-frame-hook
  84. diff-auto-refine-mode-hook
  85. diff-minor-mode-hook
  86. diff-mode-hook
  87. dired-after-readin-hook
  88. dired-before-readin-hook
  89. dired-hide-details-mode-hook
  90. dired-initial-position-hook
  91. dired-isearch-filenames-mode-hook
  92. dired-load-hook
  93. dired-mode-hook
  94. dired-omit-mode-hook
  95. disabled-command-hook
  96. doc-view-minor-mode-hook
  97. echo-area-clear-hook
  98. edebug-setup-hook
  99. edit-abbrevs-mode-hook
  100. eieio-hook
  101. eldoc-mode-hook
  102. electric-help-mode-hook
  103. electric-indent-local-mode-hook
  104. electric-indent-mode-hook
  105. electric-layout-mode-hook
  106. electric-pair-local-mode-hook
  107. electric-pair-mode-hook
  108. electric-quote-local-mode-hook
  109. electric-quote-mode-hook
  110. elisp-byte-code-mode-hook
  111. emacs-lisp-mode-hook
  112. emacs-startup-hook
  113. erc-ctcp-query-DCC-hook
  114. eshell-after-prompt-hook
  115. eshell-alias-load-hook
  116. eshell-alternate-command-hook
  117. eshell-arg-load-hook
  118. eshell-banner-load-hook
  119. eshell-before-prompt-hook
  120. eshell-cmd-load-hook
  121. eshell-cmpl-load-hook
  122. eshell-directory-change-hook
  123. eshell-dirs-load-hook
  124. eshell-exec-hook
  125. eshell-exit-hook
  126. eshell-ext-load-hook
  127. eshell-first-time-mode-hook
  128. eshell-glob-load-hook
  129. eshell-hist-load-hook
  130. eshell-hist-unload-hook
  131. eshell-io-load-hook
  132. eshell-kill-hook
  133. eshell-load-hook
  134. eshell-ls-unload-hook
  135. eshell-mode-hook
  136. eshell-mode-unload-hook
  137. eshell-module-unload-hook
  138. eshell-named-command-hook
  139. eshell-parse-argument-hook
  140. eshell-post-command-hook
  141. eshell-post-rewrite-command-hook
  142. eshell-pre-command-hook
  143. eshell-pre-rewrite-command-hook
  144. eshell-pred-load-hook
  145. eshell-prepare-command-hook
  146. eshell-proc-load-hook
  147. eshell-prompt-load-hook
  148. eshell-rewrite-command-hook
  149. eshell-script-load-hook
  150. eshell-term-load-hook
  151. eshell-unix-load-hook
  152. eshell-unload-hook
  153. eshell-var-load-hook
  154. eval-expression-minibuffer-setup-hook
  155. eww-after-render-hook
  156. eww-bookmark-mode-hook
  157. eww-buffers-mode-hook
  158. eww-history-mode-hook
  159. eww-mode-hook
  160. exit-language-environment-hook
  161. file-name-shadow-mode-hook
  162. find-file-hook
  163. find-file-hooks
  164. find-file-not-found-hooks
  165. find-function-after-hook
  166. find-tag-hook
  167. first-change-hook
  168. flyspell-incorrect-hook
  169. flyspell-mode-hook
  170. focus-in-hook
  171. focus-out-hook
  172. font-lock-mode-hook
  173. gfm-mode-hook
  174. git-commit-mode-hook
  175. git-commit-setup-hook
  176. global-auto-composition-mode-hook
  177. global-auto-revert-mode-hook
  178. global-eldoc-mode-hook
  179. global-font-lock-mode-hook
  180. global-git-commit-mode-hook
  181. global-hi-lock-mode-hook
  182. global-linum-mode-hook
  183. global-magit-file-mode-hook
  184. global-page-break-lines-mode-hook
  185. global-prettify-symbols-mode-hook
  186. global-subword-mode-hook
  187. global-superword-mode-hook
  188. global-visual-line-mode-hook
  189. gnus-apply-kill-hook
  190. gnus-exit-gnus-hook
  191. gnus-load-hook
  192. gnus-summary-prepare-exit-hook
  193. go-mode-hook
  194. grep-mode-hook
  195. grep-setup-hook
  196. hack-local-variables-hook
  197. help-mode-hook
  198. hi-lock-mode-hook
  199. horizontal-scroll-bar-mode-hook
  200. html-autoview-mode-hook
  201. html-mode-hook
  202. htmlize-after-hook
  203. htmlize-before-hook
  204. htmlize-file-hook
  205. ibuffer-auto-mode-hook
  206. ibuffer-hook
  207. ibuffer-hooks
  208. ibuffer-load-hook
  209. ibuffer-mode-hook
  210. ibuffer-mode-hooks
  211. icomplete-minibuffer-setup-hook
  212. icomplete-mode-hook
  213. idl-mode-hook
  214. ido-everywhere-hook
  215. ido-make-buffer-list-hook
  216. ido-make-dir-list-hook
  217. ido-make-file-list-hook
  218. ido-minibuffer-setup-hook
  219. ido-setup-hook
  220. image-minor-mode-hook
  221. imenu-after-jump-hook
  222. inhibit-modification-hooks
  223. inhibit-point-motion-hooks
  224. inhibit-startup-hooks
  225. input-method-activate-hook
  226. input-method-after-insert-chunk-hook
  227. input-method-deactivate-hook
  228. input-method-inactivate-hook
  229. isearch-mode-end-hook
  230. isearch-mode-end-hook-quit
  231. isearch-mode-hook
  232. isearch-update-post-hook
  233. ispell-initialize-spellchecker-hook
  234. ispell-kill-ispell-hook
  235. ispell-minor-mode-hook
  236. ispell-update-post-hook
  237. java-mode-hook
  238. jit-lock-debug-mode-hook
  239. js-jsx-mode-hook
  240. js-mode-hook
  241. kbd-macro-termination-hook
  242. keyfreq-autosave-mode-hook
  243. keyfreq-mode-hook
  244. kill-buffer-hook
  245. kill-emacs-hook
  246. line-number-mode-hook
  247. linum-before-numbering-hook
  248. linum-mode-hook
  249. lisp-interaction-mode-hook
  250. lisp-mode-hook
  251. local-write-file-hooks
  252. log-edit-done-hook
  253. log-edit-hook
  254. log-edit-mode-hook
  255. mail-abbrevs-mode-hook
  256. mail-citation-hook
  257. mail-setup-hook
  258. markdown-after-export-hook
  259. markdown-before-export-hook
  260. markdown-live-preview-mode-hook
  261. markdown-mode-hook
  262. menu-bar-mode-hook
  263. menu-bar-update-hook
  264. message-cancel-hook
  265. message-header-hook
  266. message-header-setup-hook
  267. message-mode-hook
  268. message-send-hook
  269. message-send-mail-hook
  270. message-send-news-hook
  271. message-sent-hook
  272. message-setup-hook
  273. message-signature-setup-hook
  274. messages-buffer-mode-hook
  275. minibuffer-exit-hook
  276. minibuffer-inactive-mode-hook
  277. minibuffer-setup-hook
  278. mml-mode-hook
  279. mouse-leave-buffer-hook
  280. mouse-wheel-mode-hook
  281. next-error-follow-minor-mode-hook
  282. next-error-hook
  283. normal-erase-is-backspace-hook
  284. normal-erase-is-backspace-mode-hook
  285. nxml-completion-hook
  286. nxml-glyph-set-hook
  287. nxml-in-mixed-content-hook
  288. nxml-mode-hook
  289. objc-mode-hook
  290. occur-edit-mode-hook
  291. occur-hook
  292. occur-mode-find-occurrence-hook
  293. occur-mode-hook
  294. orgstruct-mode-hook
  295. orgstruct-setup-hook
  296. outline-minor-mode-hook
  297. outline-mode-hook
  298. outline-view-change-hook
  299. overwrite-mode-hook
  300. package--post-download-archives-hook
  301. package-menu-mode-hook
  302. page-break-lines-mode-hook
  303. paragraph-indent-minor-mode-hook
  304. paragraph-indent-text-mode-hook
  305. pcomplete-quote-arg-hook
  306. pcomplete-try-first-hook
  307. pike-mode-hook
  308. post-command-hook
  309. post-gc-hook
  310. post-self-insert-hook
  311. pre-abbrev-expand-hook
  312. pre-command-hook
  313. prefix-command-preserve-state-hook
  314. prettify-symbols-mode-hook
  315. process-menu-mode-hook
  316. prog-mode-hook
  317. quickurl-reread-hook-postfix
  318. racket-mode-hook
  319. rcirc-mode-hook
  320. read-only-mode-hook
  321. recentf-dialog-mode-hook
  322. recentf-load-hook
  323. recentf-mode-hook
  324. recentf-used-hooks
  325. replace-update-post-hook
  326. revert-buffer-internal-hook
  327. rfn-eshadow-setup-minibuffer-hook
  328. rfn-eshadow-update-overlay-hook
  329. rmail-mode-hook
  330. rmail-show-message-hook
  331. rng-schema-change-hook
  332. save-place-mode-hook
  333. savehist-mode-hook
  334. savehist-save-hook
  335. scheme-mode-hook
  336. scroll-bar-mode-hook
  337. server-done-hook
  338. server-mode-hook
  339. server-switch-hook
  340. server-visit-hook
  341. set-language-environment-hook
  342. sgml-electric-tag-pair-mode-hook
  343. sgml-mode-hook
  344. shell-command-with-editor-mode-hook
  345. shell-dirtrack-mode-hook
  346. shell-mode-hook
  347. show-paren-mode-hook
  348. signal-hook-function
  349. size-indication-mode-hook
  350. smerge-mode-hook
  351. special-mode-hook
  352. speedbar-after-create-hook
  353. speedbar-before-delete-hook
  354. speedbar-before-popup-hook
  355. speedbar-before-visiting-file-hook
  356. speedbar-before-visiting-tag-hook
  357. speedbar-load-hook
  358. speedbar-mode-hook
  359. speedbar-reconfigure-keymaps-hook
  360. speedbar-scanner-reset-hook
  361. speedbar-timer-hook
  362. speedbar-vc-directory-enable-hook
  363. speedbar-vc-in-control-hook
  364. speedbar-visiting-file-hook
  365. speedbar-visiting-tag-hook
  366. subword-mode-hook
  367. superword-mode-hook
  368. suspend-hook
  369. suspend-resume-hook
  370. tabulated-list-mode-hook
  371. tabulated-list-revert-hook
  372. temp-buffer-resize-mode-hook
  373. temp-buffer-setup-hook
  374. temp-buffer-show-hook
  375. temp-buffer-window-setup-hook
  376. temp-buffer-window-show-hook
  377. term-exec-hook
  378. term-load-hook
  379. term-mode-hook
  380. term-setup-hook
  381. text-mode-hook
  382. tool-bar-mode-hook
  383. tooltip-hook
  384. tooltip-mode-hook
  385. tramp-handle-file-local-copy-hook
  386. tramp-handle-write-region-hook
  387. tramp-unload-hook
  388. transient-mark-mode-hook
  389. tty-setup-hook
  390. unify-8859-on-decoding-mode-hook
  391. unify-8859-on-encoding-mode-hook
  392. url-cookie-mode-hook
  393. url-load-hook
  394. use-hard-newlines-hook
  395. vc-before-checkin-hook
  396. vc-checkin-hook
  397. vc-checkout-hook
  398. vc-git-log-edit-mode-hook
  399. vc-git-log-view-mode-hook
  400. vc-git-region-history-mode-hook
  401. vc-log-after-operation-hook
  402. vc-logentry-check-hook
  403. vc-mode-line-hook
  404. view-mode-hook
  405. visible-mode-hook
  406. visual-line-mode-hook
  407. w3m-minor-mode-hook
  408. w3m-mode-hook
  409. wdired-mode-hook
  410. window-configuration-change-hook
  411. window-divider-mode-hook
  412. window-setup-hook
  413. with-editor-filter-visit-hook
  414. with-editor-mode-hook
  415. with-editor-post-cancel-hook
  416. with-editor-post-cancel-hook-1
  417. with-editor-post-finish-hook
  418. with-editor-post-finish-hook-1
  419. with-editor-pre-cancel-hook
  420. with-editor-pre-finish-hook
  421. write-contents-hooks
  422. write-file-hooks
  423. x-lost-selection-hooks
  424. x-sent-selection-hooks
Like my tutorial? Put $5 at patreon

Or Buy Xah Emacs Tutorial

Or buy a nice keyboard: Best Keyboard for Emacs