all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* elpa package loading problem?
@ 2012-06-02 16:44 Xah Lee
  2012-06-04  8:58 ` José A. Romero L.
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Xah Lee @ 2012-06-02 16:44 UTC (permalink / raw)
  To: help-gnu-emacs

does anyone have problems with emacs package system?

recently, installed several packages with it: {“rainbow-mode”,
“bookmark+”, “smex”, “expand-region”}.

But they all have a similar problem related to autoload. For example,
let's say rainbow-mode. When in css, it's not loaded. You have to
manually call it. So, if you want it to load automatically when in
css, you have to add stuff to your init file. Then, this means the
package system does not really automatically manage things. You still
have know some elisp, and manually add things to your init file. (we
talking about basic activation, not advanced customization)

The issue is more pronounced with modes such as bookmark+, smex,
expand-region. For example, in bookmark+, when i start my emacs, call
bookmark 【Ctrl+x r l】, it gives a error about some current-bookmark-
file var not defined. Apparently, the problem is that bookmark+ must
be properly initialized before i start my bookmark. (when calling
bookmark-bmenu-list, it does automatically load bookmark+, but isn't
properly initialized) Here, i've spent some 20 min but haven't
succeeded in making it work. (i suppose i'll need to take time to
understand how elpa loading mechanism works.)

Similar things happen with smex, expand-region. For example, smex
requires you to define a key for M-x. So i added (global-set-key (kbd
"<apps>") 'smex) in my init. But after starting emacs, i press the
apps key, i get: “Symbol's function definition is void: smex”. If i
put (require 'smex), restart, i get “Debugger entered--Lisp error:
(file-error "Cannot open load file" "smex")”. Next step is to add the
load path, which i haven't tried yet. But that seems to defeat half of
goodness of package system.

Any insight on this?

for emacs 24, is this the way things are?


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

end of thread, other threads:[~2012-11-30  4:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-02 16:44 elpa package loading problem? Xah Lee
2012-06-04  8:58 ` José A. Romero L.
2012-06-04 19:18   ` José A. Romero L.
2012-06-04 23:09   ` Xah Lee
2012-11-29  7:09 ` Easior
2012-11-30  4:18   ` Jude DaShiell
     [not found] ` <mailman.14118.1354247749.855.help-gnu-emacs@gnu.org>
2012-11-30  4:53   ` Xah Lee

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.