Skip to content
Emacs mode to select major mode for header files.
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A major mode that, when associated with the .h file extension, will put those file into the major mode of their corresponding implementation file.

Installation and Usage

  • Put lisp/header-file-mode.el somewhere in your load path.
  • Make it load by
    • Requiring it all the time by adding to your emacs init file (require header-file-mode)
    • Make it autoload by adding to your emacs init file (autoload ‘header-file-mode “header-file-mode”)
  • Add an entry to auto-mode-alist (cons “\.h$” ‘header-file-mode)

Contents - this file


Emacs lisp source code

You can’t perform that action at this time.