llvm-capstone/llvm/utils/emacs
Luke Lau b0af89cbda [emacs] Add regexps for defuns
Previously `M-x mark-defun` and friends wouldn't work properly, and would
highlight something at the top of the buffer. This adds a regexp for top-level
functions so the defun functions should work as expected, and also adds a
regexp for extracting their name so which-function-mode should work now too.

Reviewed By: goldstein.w.n

Differential Revision: https://reviews.llvm.org/D158196
2023-08-21 10:43:41 +01:00
..
emacs.el
llvm-mir-mode.el [emacs] Add llvm-mir-mode 2023-02-07 16:01:25 -08:00
llvm-mode.el [emacs] Add regexps for defuns 2023-08-21 10:43:41 +01:00
README [emacs] Add llvm-mir-mode 2023-02-07 16:01:25 -08:00
tablegen-mode.el

-*- llvm/utils/emacs/README -*-

These are syntax highlighting files for the Emacs and XEmacs editors. Included
are:

* llvm-mode.el

  Syntax highlighting mode for LLVM assembly files. To use, add this code to
  your ~/.emacs :

  (setq load-path
    (cons (expand-file-name "path-to-llvm/utils/emacs") load-path))
  (require 'llvm-mode)
  
* llvm-mir-mode.el

  Syntax highlighting mode for LLVM Machine IR files. To use, add this code to
  your ~/.emacs :

  (setq load-path
    (cons (expand-file-name "path-to-llvm/utils/emacs") load-path))
  (require 'llvm-mir-mode)

* tablegen-mode.el

  Syntax highlighting mode for TableGen description files. To use, add this code
  to your ~/.emacs:

  (setq load-path
    (cons (expand-file-name "path-to-llvm/utils/emacs") load-path))
  (require 'tablegen-mode)


Note: If you notice missing or incorrect syntax highlighting, please contact
<llvm-bugs [at] lists.llvm.org>; if you wish to provide a patch to improve the
functionality, it will be most appreciated. Thank you.