i have emacs 24.3.1, and until today i've been using evil 1.0.7: (add-to-list 'load-path "~/.emacs.d/evil/lib") (add-to-list 'load-path "~/.emacs.d/evil") (require 'undo-tree) (require 'evil) (global-undo-tree-mode) (evil-mode 1) now i'm using melpa: (require 'package) (add-to-list 'load-path "~/.emacs.d/elpa/undo-tree-20131118.1744") (add-to-list 'load-path "~/.emacs.d/elpa/evil-20131218.54") (require 'undo-tree) (require 'evil) (global-undo-tree-mode) (evil-mode 1) apparently evil 1.0.7 in turn made incf available. now, to use incf i also need: (add-to-list 'load-path "/usr/local/share/emacs/24.3/lisp/emacs-lisp") (require 'cl) and in the process i noticed that i don't need any of the add-to-list's in order to run the (require '...)'s manually (via ^x^e), but i do need them if i want the require's to run in my .emacs! can anyone help me understand or drop me a pointer? am i missing something?
and in the process i noticed that i don't need any of the add-to-list's in order to run the (require '...)'s manually (via ^x^e), but i do need them if i want the require's to run in my .emacs!
Call (package-initialize), as explained at http://www.emacswiki.org/emacs/ELPA
now, to use incf i also need:
(add-to-list 'load-path "/usr/local/share/emacs/24.3/lisp/emacs-lisp") (require 'cl)
You shouldn't need these lines. (require 'cl-lib) and use cl-incf.
(add-to-list 'load-path "/usr/local/share/emacs/24.3/lisp/emacs-lisp") (require 'cl)
You shouldn't need these lines. (require 'cl-lib) and use cl-incf.
Keep in mind that cl-lib is only available in 24.3 and later, and you need to get it via GNU ELPA repo for 24.1 and 24.2. That's not that bad if you only use the code in your .emacs on a single version, but it can easily trip you over whenever you share code or use slightly older distros (like ubuntu 13.04). Cheers, Maciej
participants (3)
-
Barry OReilly -
gregrwm -
Maciej Katafiasz