# HG changeset patch # User Oleksandr Gavenko # Date 1280095186 -10800 # Node ID 6e8b3a3122622350c0a62e274c18fa889f1b65e6 # Parent 69d3c7df190f843b7ebad276ac5220316ccf3d88 Allow imenu function if manu-bar-mode disabled (becase in that case menu-bar-update-hook not invoked). diff -r 69d3c7df190f -r 6e8b3a312262 .emacs-my --- a/.emacs-my Mon Jul 26 00:57:40 2010 +0300 +++ b/.emacs-my Mon Jul 26 00:59:46 2010 +0300 @@ -962,6 +962,20 @@ ) ;; ---------------------------------------------------------------------- +;; imenu. + +(require 'imenu) +(when window-system + (mapc (lambda (hook) + (add-hook hook + (lambda () + (imenu-add-menubar-index) + (run-hooks 'menu-bar-update-hook) + ) )) + my-devel-mode-hook-list) + ) + +;; ---------------------------------------------------------------------- ;; windows inf files for driver installing (add-to-list 'auto-mode-alist '("\\.inf\\'" . conf-mode))