메뉴 건너뛰기

app

[FreeBSD] 2006년 8월 22일 01:00

박영식2006.08.22 10:14조회 수 1897댓글 0

    • 글자 크기
slime을 .emacs file에 적용시키는 것 까지 성공했다.

이것만 해도 기적이라고 생각한다.

/usr/local/share/emcs/21.3/site-lisp/slime

위와 같은 경로를 어떻게 찾아냈는지도 기억이 안 난다...

월.... .emacs 는 emacs 실행시 자동으로 읽혀지는 환경설정 file인데, 초기 file이 없기 때문에 꼭 생성해서 원하는 설정을 넣어야 한다.

root이거나 user일 경우나 마찬가지 이다.

경로는 : /root, /home/userid 디렉터리 안에 .emacs 라는 이름으로 vi든 emacs 편집기든 만들어 넣으면 된다.

그래서 slime을 넣은 것이다.

(add-to-list : 'load-path "/usr/local/share/emcs/21.3/site-lisp/slime")
(require 'slime)
(slime-setup)          --> 이것은 리습사용자모임에 나와있지 않다. README 파일을 보고 넣은 것이다.(README의 경로 /usr/local/share/doc/slime/README)

그런데 문제가 또 생겼다. M-x slime 시 Searching for program: no such file or directory, lisp 라고 나오는 것이다. 버그라고 되어 있는데, 해결책으로 뭐라고 뭐라고 쓰여져 있다. 뭔 말인지는 직접 해보면서 해결해야 할 것 같다.

이거라도 해결되면, 좋겠다. 지금 넘 힘들다.


Workaround for M-x slime bug in Lisp in a Box for Windows running Allegro CL 6.2 Trial: Warning: Lisp newbie workaround! But it works. Advice welcome. Add this to the end of the 99init.el file located directly under the LispBox directory.
Alternatively, setting inferior-lisp-program, such as (defvar inferior-lisp-program "lisp") with the correct executable and args instead of just "lisp", in this file would probably also fix the problem.





;; The following are a few workarounds for the following bug in
;; the Windows version of Lisp in a Box running the trial version
;; of Allegro CL 6.2.
;; Bug: "M-x slime" doesn't work in Emacs. Produces the error:
;;  "Searching for program: no such file or directory, lisp"

;; Set function key for re-starting Slime.
;; (lispbox-start-allegro-trial-6.2) defined in 50allegrotrial62.el.
(global-set-key
[(f5)]
'(lambda ()
   (interactive)
   (lispbox-start-allegro-trial-6.2)))

;; Likewise, this one-liner also starts Slime w/ Allegro CL, assuming
;; Allegro's all you've got set up to work w/ Slime.
;; lispbox-pick-lisp defined in 00base.el.
;; (global-set-key [(f5)] 'lispbox-pick-lisp)

;; Workaround for "M-x slime". Replaces slime function in slimeslime.el.
;; 'allegro-trial-6.2 set in 50allegrotrial62.el.
(defun slime ()
  (interactive)
  (lispbox-pick-lisp 'allegro-trial-6.2))

박영식 (비회원)
    • 글자 크기
[WP7] 미사전 기도 어플 (by suritam9) [FreeBSD] 2006년 8월 23일 24:00 (by 박영식)

댓글 달기

이전 1 ... 3 4 5 6 7 8 9 10 11 12... 14다음
첨부 (0)
위로