Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

init.el

11 views
Skip to first unread message

Haris Bogdanović

unread,
Apr 16, 2010, 4:13:43 PM4/16/10
to
Hi.

I have emacs init.el file like this:

--------------------------------------------

(global-unset-key (kbd "M-d"))
(global-unset-key (kbd "M-DEL"))
(global-set-key (kbd "C-x e") 'slime-eval-buffer)
(push "*Buffer List*" same-window-buffer-names)
(set-default-font "-outline-Courier
New-bold-normal-normal-mono-24-*-*-*-c-*-iso8859-1")
(modify-frame-parameters nil '((wait-for-wm . nil)))

(autoload 'linum-mode "linum" "toggle line numbers on/off" t)
(global-set-key (kbd "C-<f5>") 'linum-mode)
(blink-cursor-mode)

(setq inferior-lisp-program "C:/lisp/clisp/clisp.exe")
(add-to-list 'load-path "c:/lisp/slime")
(add-to-list 'load-path "c:/lisp/slime/contrib")
(require 'slime-autoloads)
(slime-setup '(slime-fancy))
(slime)

; the last three lines below don't work

(load "c:/lisp/clisp/asdf.lisp")
(push "c:/lisp/clisp/asdf-reg/" asdf:*central-registry*)
(asdf:oos 'asdf:load-op 'wxcl)

-------------------------------------------------------------------

but last three lines don't work. If I copy them and paste it into repl
after emacs started then it works, the wxcl library loads. Why ?

Thanks


D Herring

unread,
Apr 16, 2010, 4:18:05 PM4/16/10
to

The last three lines are meant for your Common Lisp (CL)
implementation; the other lines in this file are meant for emacs lisp.

- Daniel

Haris Bogdanovic

unread,
Apr 16, 2010, 8:44:28 PM4/16/10
to
> The last three lines are meant for your Common Lisp (CL) implementation;
> the other lines in this file are meant for emacs lisp.

Can I then automate that so that I don't have to paste those
three lines in repl every time I open emacs ?


D Herring

unread,
Apr 16, 2010, 10:02:40 PM4/16/10
to

Depends on your CL implementation. Edit the appropriate file in your
home directory (user-homedir-pathname).

Allegro: .clinit.cl or clinit.cl
Clisp: .clisprc.lisp
Clozure: ccl-init.lisp or openmcl-init.lisp
CMUCL: .cmucl-init.lisp or init.lisp
ECL: .eclrc or .ecl
LispWorks: .lispworks
SBCL: .sbclrc

These files are loaded whenever CL starts, with or without emacs
(unless they are suppressed by a flag like --norc or --no-userinit).

- Daniel

Tim Bradshaw

unread,
Apr 18, 2010, 4:44:32 PM4/18/10
to
On 2010-04-17 03:02:40 +0100, D Herring said:

> Clozure: ccl-init.lisp or openmcl-init.lisp

Or .ccl-init.lisp

0 new messages