Emacs (Cocoa Emacs) vs Aquamacs for running Clojure on Mac OS X

后端 未结 3 1763
春和景丽
春和景丽 2020-12-05 01:07

I used Aquamacs so far, and I need to install and run Clojure using SLIME. I googled to get some way to use Clojure on SLIME of Aquamacs, but without success.

Ques

3条回答
  •  温柔的废话
    2020-12-05 01:54

    Paul Barry gives an lecture how to use Aquamacs and Clojure.

    It's simple as you can add this code to the .emacs file,

    (add-to-list 'load-path "~/clojure/clojure-mode")
    (setq inferior-lisp-program "/Users/smcho/bin/clj")
    (require 'clojure-mode)
    (setq auto-mode-alist
      (cons '("\\.clj\\'" . clojure-mode)
         auto-mode-alist))
    (add-hook 'clojure-mode-hook
      (lambda ()
         (define-key clojure-mode-map "\C-c\C-e" 'lisp-eval-last-sexp)))
    

    I could run 'M-x clojure-mode', and C-c C-z for REPL.

    And as is asked and answered in Running Clojure and other Lisp at the same time on Emacs, I could use both Clojure/Lisp on Aquamacs.

提交回复
热议问题