浏览代码

Add imenu-generic-expression

master
10sr 5 年前
父节点
当前提交
8abf08e0cc
签署人:: 10sr GPG 密钥 ID: 7BEC428194130EB2
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      emacs.el

+ 6
- 0
emacs.el 查看文件

@@ -848,6 +848,12 @@ found, otherwise returns nil."
(set-variable 'imenu-list-focus-after-activation t)
(define-key ctl-x-map "l" 'imenu-list-smart-toggle))

(add-hook 'emacs-lisp-mode-hook
(lambda ()
(setq imenu-generic-expression
`(("Sections" ";;;\+\n;; \\(.*\\)\n" 1)
,@imenu-generic-expression))))

(with-eval-after-load 'compile
(defvar compilation-filter-start)
(defvar compilation-error-regexp-alist)


正在加载...
取消
保存