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
The last three lines are meant for your Common Lisp (CL)
implementation; the other lines in this file are meant for emacs lisp.
- Daniel
Can I then automate that so that I don't have to paste those
three lines in repl every time I open emacs ?
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
> Clozure: ccl-init.lisp or openmcl-init.lisp
Or .ccl-init.lisp