瀏覽代碼

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)


Loading…
取消
儲存