all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Extending 'emacs-lisp-mode' Disables 'auto-complete' for It
@ 2013-06-15 17:26 Haroogan
  2013-06-23 17:43 ` Haroogan
  0 siblings, 1 reply; 9+ messages in thread
From: Haroogan @ 2013-06-15 17:26 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I've extended emacs-lisp-mode with my elisp-mode in order to provide 
more syntax highlighting. Relevant excerpt:

...

(define-derived-mode elisp-mode
   emacs-lisp-mode
   "?L"
   "A major mode for Emacs Lisp.
\\{elisp-mode-keymap}"
   (set 'font-lock-defaults '((elisp-mode-font-lock-keywords)))
   (set-syntax-table elisp-mode-syntax-table)
   (use-local-map elisp-mode-keymap)
   (run-hooks 'emacs-lisp-mode-hook); Tried `run-mode-hooks` as well...
   (run-mode-hooks 'elisp-mode-hook))

(provide 'elisp)

Then I have:

(add-hook 'emacs-lisp-mode-hook 'ac-emacs-lisp-mode-setup)

And of course:

(require 'elisp)

(add-to-list
  'auto-mode-alist
  '("\\.el" . elisp-mode))

Now the problem is that auto-completion doesn't work in elisp-mode.
I have no clue why.
As soon as I disable elisp-mode and return to the emacs-lisp-mode it 
works just fine.
I've also tried:

(add-hook 'elisp-mode-hook 'ac-emacs-lisp-mode-setup)

and without luck...

Any help is appreciated.
Thanks.




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-06-24  1:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-15 17:26 Extending 'emacs-lisp-mode' Disables 'auto-complete' for It Haroogan
2013-06-23 17:43 ` Haroogan
2013-06-23 18:29   ` Michael Heerdegen
2013-06-23 21:26     ` Dmitry Gutov
2013-06-23 22:10       ` Michael Heerdegen
2013-06-23 22:31         ` Haroogan
2013-06-23 22:55           ` Michael Heerdegen
2013-06-23 23:13             ` Haroogan
2013-06-24  1:13               ` Michael Heerdegen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.