簡體   English   中英

如何在Windows7下將粘液安裝到emacs中

[英]How to install the slime into emacs under Windows7

如何在Win7下將粘液安裝到emacs中?

我下載了一個帶有'.tgz'的緊湊包。 但它似乎對於Linux。 但是對於Windows來說真的沒有一件事(贏得32 OS)。

我展開了這個包,我發現有很多文件。

就我所知,它實際上與其他操作系統相同 (至少,它總是在我的FreeBSD / ArchLinux / Win7下工作。)首先,你解壓縮到你喜歡的位置,然后在.emacs中添加這樣的東西(假設你在你的用戶目錄下解壓縮):

(add-to-list 'load-path "~/my/path/to/slime/")
;; (add-to-list 'load-path "~/my/path/to/slime/contrib/") ; for optional features

(slime-setup
;; '(slime-fancy slime-asdf slime-references              ; optional features
;;   slime-indentation slime-xref-browser)
)

(setq slime-lisp-implementations
      '((ccl ("~/path/to/ccl/wx86cl"))
        (clisp ("~/path/to/clisp-2.49/clisp" "-modern"))) ; giving a command arg
      slime-default-lisp 'ccl)

重新啟動Emacs或在每個頂層表單后面鍵入Cx Ce 然后,鍵入Mx slime RET (或Cu Mx slime RET如果你想在slime-lisp-implementations的實現之間進行選擇,否則將使用slime-lisp-default )並且它應該正常工作(它適用於我)。 slime-lisp-implementations的設置是可選的 - 您也可以在啟動Slime時手動提供lisp實現可執行文件的路徑。

假設你想使用Slime和CL,因為沒有Clojure標簽。 如果你想在Clojure中使用它,不幸的是有些不同,兩個版本都不能很好地結合在一起。 上次我檢查時,推薦使用Clojure的方法是使用Emacs 24的軟件包系統進行安裝,如果你使用的是舊版本,則使用ELPA(基本相同)。

這對我有用,

  • https://github.com/slime/slime獲取Slime副本,可以通過git clone或下載zip。 例如,將其解壓縮並保存在D:/myuser/slime-2.13
  • 下載並安裝CLISP
  • 將其添加到.emacs文件中,通常位於C:/users/myuser/AppData/Roaming

     ; This is the path where you've saved Slime in the first step (add-to-list 'load-path "D:/myuser/slime-2.13/") (require 'slime-autoloads) ; This is the path where CLISP was installed. ; Use Progra~1 for "Program Files" and Progra~2 for "Program Files (x86)" (setq inferior-lisp-program "/C/Progra~2/clisp-2.49/clisp.exe") 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM