I'm running Mac OS X 10.4.7, and I've tried getting slime to work with the OS's emacs, xemacs and emacs21 from fink, as well as a Carbon Emacs package that was linked from the Apple downloads site. I've tried the slime from fink, slime from cvs, and downloaded tgz, and the slime that came bundled in the Carbon Emacs. I've tried using clisp, cmucl, sbcl, and openmcl, and nothing I've tried works. Below is my current .emacs file, which is set to use slime from the tgz file, and sbcl from fink. If anyone can offer any help with any particular slime on Mac OS X setup that I've tried, please let me know, and I can show specific error messages I've gotten, if they might help.
(setq auto-mode-alist (append '(("\.mm$" . objc-mode) ;;("\.lisp$" . fi:common-lisp-mode) ("\.lisp$" . lisp-mode)) auto-mode-alist))
(add-to-list 'load-path "/Users/smee/slime-2.0") (require 'slime) (setq inferior-lisp-program "/sw/bin/sbcl" lisp-indent-functioin 'common-lisp-indent-function slime-complete-symbol-function 'slime-fuzzy-complete-symbol slime-startup-animation t) ;;;(add-hook 'lisp-mode-hook (lambda () (slime-mode t))) (add-hook 'inferior-lisp-mode-hook (lambda () (inferior-slime-mode t))) ;; Optionally, specify the lisp program you are using. Default is "lisp" ;;;(slime-setup) (add-hook 'lisp-mode-hook (lambda () (require 'slime) (slime-mode t) (slime-setup)))
(setq load-path (cons (expand-file-name "~/ilisp-20021222/") load- path)) (autoload 'openmcl "ilisp" "Inferior Open MCL" t) ;; See the file "ilisp-5.11/ilisp.emacs" for ;; examples of other customization settings ;; that affect ILISP. Some recent ;; versions of XEmacs can be configured to ;; use a ~/.xemac/init.el file ;; instead of ~/.emacs
(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:stipple nil :background "black" :foreground "white" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :family "apple-monaco")))) '(cursor ((t (:background "darkgrey"))) t)) (setq make-backup-files nil) (setq inhibit-startup-message t) (load-file "/Volumes/BRUNOISE.JARDIN/TIGRE/emacs/test.el") (load-file "/Volumes/BRUNOISE.JARDIN/TIGRE/emacs/test_commands.el")
(fset '{ (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ("{}{" 0 "%d")) arg))) (global-set-key (kbd "C-{") '{)
(fset '} (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([19 125 left right return] 0 "%d")) arg))) (global-set-key (kbd "C-}") '})
(fset '[ (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([91 93 18 91 right] 0 "%d")) arg))) (global-set-key (kbd "M-[") '[)
(fset '] "\C-s]\C-m") (global-set-key (kbd "M-]") '])
(fset ') "\C-s)") (global-set-key (kbd "C-)") '))
(fset '( (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([40 41 18 40 right] 0 "%d")) arg))) (global-set-key (kbd "C-(") '()
Dustin Kick
Dustin Robert Kick mac_vieuxnez@mac.com writes:
I can show specific error messages I've gotten, if they might help.
They might help, yes. Also, which version of SBCL is the in fink?
lisp-indent-functioin 'common-lisp-indent-function
^^
Typo, not that it should affect loading of slime.
(add-hook 'lisp-mode-hook (lambda () (require 'slime) (slime-mode t) (slime-setup)))
I would recommend calling (require 'slime) outside the hook, as a top level form in .emacs, but dunno if that is the cause of your woes.
If that does not help, I would get Slime from CVS and SBCL from www.sbcl.org just to eliminate packager braindamage.
Cheers,
-- Nikodemus Schemer: "Buddha is small, clean, and serious." Lispnik: "Buddha is big, has hairy armpits, and laughs."
I've been using aqaumacs/slime/openmcl and haven't have any problems re: getting it up and running and can try to help if you can provide more details of your problems when working with openmcl. I just verified that slime is also working for me via the apple shipped version of emacs with openmcl as well.
Dustin Robert Kick wrote:
I'm running Mac OS X 10.4.7, and I've tried getting slime to work with the OS's emacs, xemacs and emacs21 from fink, as well as a Carbon Emacs package that was linked from the Apple downloads site. I've tried the slime from fink, slime from cvs, and downloaded tgz, and the slime that came bundled in the Carbon Emacs. I've tried using clisp, cmucl, sbcl, and openmcl, and nothing I've tried works. Below is my current .emacs file, which is set to use slime from the tgz file, and sbcl from fink. If anyone can offer any help with any particular slime on Mac OS X setup that I've tried, please let me know, and I can show specific error messages I've gotten, if they might help.
(setq auto-mode-alist (append '(("\.mm$" . objc-mode) ;;("\.lisp$" . fi:common-lisp-mode) ("\.lisp$" . lisp-mode)) auto-mode-alist))
(add-to-list 'load-path "/Users/smee/slime-2.0") (require 'slime) (setq inferior-lisp-program "/sw/bin/sbcl" lisp-indent-functioin 'common-lisp-indent-function slime-complete-symbol-function 'slime-fuzzy-complete-symbol slime-startup-animation t) ;;;(add-hook 'lisp-mode-hook (lambda () (slime-mode t))) (add-hook 'inferior-lisp-mode-hook (lambda () (inferior-slime-mode t))) ;; Optionally, specify the lisp program you are using. Default is "lisp" ;;;(slime-setup) (add-hook 'lisp-mode-hook (lambda () (require 'slime) (slime-mode t) (slime-setup)))
(setq load-path (cons (expand-file-name "~/ilisp-20021222/") load-path)) (autoload 'openmcl "ilisp" "Inferior Open MCL" t) ;; See the file "ilisp-5.11/ilisp.emacs" for ;; examples of other customization settings ;; that affect ILISP. Some recent ;; versions of XEmacs can be configured to ;; use a ~/.xemac/init.el file ;; instead of ~/.emacs
(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:stipple nil :background "black" :foreground "white" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :family "apple-monaco")))) '(cursor ((t (:background "darkgrey"))) t)) (setq make-backup-files nil) (setq inhibit-startup-message t) (load-file "/Volumes/BRUNOISE.JARDIN/TIGRE/emacs/test.el") (load-file "/Volumes/BRUNOISE.JARDIN/TIGRE/emacs/test_commands.el")
(fset '{ (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ("{}{" 0 "%d")) arg))) (global-set-key (kbd "C-{") '{)
(fset '} (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([19 125 left right return] 0 "%d")) arg))) (global-set-key (kbd "C-}") '})
(fset '[ (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([91 93 18 91 right] 0 "%d")) arg))) (global-set-key (kbd "M-[") '[)
(fset '] "\C-s]\C-m") (global-set-key (kbd "M-]") '])
(fset ') "\C-s)") (global-set-key (kbd "C-)") '))
(fset '( (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([40 41 18 40 right] 0 "%d")) arg))) (global-set-key (kbd "C-(") '()
Dustin Kick
I too am using 10.4.7 (iNTEL iMac) with SBCL 0.9.14 which I downloaded and built from the source. I use, in no particular order,
Aquamacs 0.9.9d Gnu Emacs 23.0.0.2 The Apple shipped emacs, 21.2.1
My SLIME is from CVS, last updated a few weeks ago.
All I can say is that I have never had any problems at all using SBCL +SLIME. In the hope of helping the penny drop, here is the contents of both my .sbclrc file and my .emacs file
Hope it helps! Sean Charles
[.EMACS] ;; ;; EMACS ;; ;;-- where I put my downloaded extensions (add-to-list 'load-path "/Users/seancharles/Documents/emacs/") (add-to-list 'load-path "/usr/share/emacs/site-lisp/w3m/") ;; ;; PHP-Mode (require 'php-mode) (add-hook 'php-mode-user-hook 'turn-on-font-lock) ;; ;; CSS-Mode (autoload 'css-mode "css-mode") (add-hook 'css-mode-user-hook 'turn-on-font-lock) (add-to-list 'auto-mode-alist '("\.css\'" . css-mode)) (setq cssm-indent-function #'cssm-c-style-indenter) (setq cssm-indent-level '2) ;; ;; javascript-generic-mode (require 'generic-x) (require 'javascript-mode) ;; ;; ;; COLOR SCHEME selection ;; ;;(defun cs-white-on-black () ;; (set-background-color "black") ;; (set-foreground-color "white")) ;;(cs-white-on-black)
(setq inhibit-startup-message ()) (fset 'yes-or-no-p 'y-or-n-p) (setq-default line-number-mode t) (setq-default column-number-mode t) (setq display-time-24hr-format t) (display-time) ;; ;; General emacs... ;; (cond ((>= emacs-major-version 23) (require 'mic-paren) (paren-deactivate))) ;; ;; SLIME ;; (add-to-list 'load-path "/Users/seancharles/lisp/slime/") (require 'slime)
;; -- paredit extensions ;;(autoload 'paredit-mode "paredit" ;; "Minor mode for pseudo-structurally editing Lisp code." ;; t) ;;(add-hook 'lisp-mode-hook (lambda () (paredit-mode +1)))
;; Make typing brackets easier for lisp programming (define-key slime-mode-map (kbd "[") 'insert-parentheses) (define-key slime-mode-map (kbd "]") 'move-past-close-and-reindent) (define-key slime-mode-map (kbd "(") (lambda () (interactive) (insert "["))) (define-key slime-mode-map (kbd ")") (lambda () (interactive) (insert "]")))
(add-hook 'lisp-mode-hook (lambda () (slime-mode t) (font-lock-mode)))
(add-hook 'inferior-lisp-mode-hook (lambda () (inferior-slime-mode t)))
(global-set-key [f13] 'delete-other-windows) (global-set-key [f12] 'slime-selector) (global-set-key [f11] 'other-window) (global-set-key [f9] 'slime-fuzzy-complete-symbol)
(setq inferior-lisp-program "/usr/local/bin/sbcl" lisp-indent-function 'common-lisp-indent-function slime-complete-symbol-function 'slime-fuzzy-complete-symbol common-lisp-hyperspec-root "file:///Users/seancharles/lisp/ HyperSpec/" slime-startup-animation ())
(slime-setup)
;;(put 'upcase-region 'disabled nil)
;;(set-foreground-color "black") ;;(set-background-color "white") (font-lock-mode) (show-paren-mode) ;; ;; W3M -- use this for displaying HYPERSPEC pages from SLIME ;; (require 'w3m-load) (setq w3m-pop-up-frames t) (setq w3m-pop-up-windows nil) (setq browse-url-browser-function 'w3m)
(custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/ paste it! ;; Your init file should contain only one such instance. '(case-fold-search t) '(current-language-environment "English") '(show-paren-mode t nil (paren))) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. ) ;; ;; ;; TEXT-MODE HOOK --> Sensible word-wrapping (autoload 'longlines-mode "longlines.el" "Minor mode for editing long lines." t) (add-hook 'text-mode-hook 'longlines-mode)
[.SBCLRC] ;; This is the SBCL startup file. ;; ;; In here I put all those things that I would like to be ready-to-use ;; every time the REPL is presented to me. ;; ;; ;; ASDF -> The 'de facto' package management system. ;; -> for this I add my own lisp systems folder which contains ;; -> all the packages I have downloaded and installed. ;; ;; TODO: ASDF-INSTALL ;; To understand asdf-install, make it work for me and ;; to find (CLiki) an automatic ASDF package updater utility ;; so that I don't have to manually update installed packages. ;; (require :asdf) (require :asdf-install)
; ; Add my local lisp package folder to the existing list ; (push "/Users/seancharles/lisp/systems/" asdf:*central-registry*) ; ;;; If the first user-processable command-line argument is a filename, ;;; disable the debugger, load the file handling shebang-line and quit. ; (let ((script (and (second *posix-argv*) (probe-file (second *posix-argv*))))) (when script ;; Handle shebang-line (set-dispatch-macro-character ## #! (lambda (stream char arg) (declare (ignore char arg)) (read-line stream))) ;; Disable debugger (setf *invoke-debugger-hook* (lambda (condition hook) (declare (ignore hook)) ;; Uncomment to get backtraces on errors ;; (sb-debug:backtrace 20) (format *error-output* "Error: ~A~%" condition) (quit))) (load script) (quit)))
On 23 Aug 2006, at 06:46, Phil wrote:
I've been using aqaumacs/slime/openmcl and haven't have any problems re: getting it up and running and can try to help if you can provide more details of your problems when working with openmcl. I just verified that slime is also working for me via the apple shipped version of emacs with openmcl as well.
Dustin Robert Kick wrote:
I'm running Mac OS X 10.4.7, and I've tried getting slime to work with the OS's emacs, xemacs and emacs21 from fink, as well as a Carbon Emacs package that was linked from the Apple downloads site. I've tried the slime from fink, slime from cvs, and downloaded tgz, and the slime that came bundled in the Carbon Emacs. I've tried using clisp, cmucl, sbcl, and openmcl, and nothing I've tried works. Below is my current .emacs file, which is set to use slime from the tgz file, and sbcl from fink. If anyone can offer any help with any particular slime on Mac OS X setup that I've tried, please let me know, and I can show specific error messages I've gotten, if they might help. (setq auto-mode-alist (append '(("\.mm$" . objc-mode) ;;("\.lisp$" . fi:common-lisp-mode) ("\.lisp$" . lisp-mode)) auto-mode-alist)) (add-to-list 'load-path "/Users/smee/slime-2.0") (require 'slime) (setq inferior-lisp-program "/sw/bin/sbcl" lisp-indent-functioin 'common-lisp-indent-function slime-complete-symbol-function 'slime-fuzzy-complete-symbol slime-startup-animation t) ;;;(add-hook 'lisp-mode-hook (lambda () (slime-mode t))) (add-hook 'inferior-lisp-mode-hook (lambda () (inferior-slime-mode t))) ;; Optionally, specify the lisp program you are using. Default is "lisp" ;;;(slime-setup) (add-hook 'lisp-mode-hook (lambda () (require 'slime) (slime-mode t) (slime-setup))) (setq load-path (cons (expand-file-name "~/ilisp-20021222/") load- path)) (autoload 'openmcl "ilisp" "Inferior Open MCL" t) ;; See the file "ilisp-5.11/ilisp.emacs" for ;; examples of other customization settings ;; that affect ILISP. Some recent ;; versions of XEmacs can be configured to ;; use a ~/.xemac/init.el file ;; instead of ~/.emacs (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:stipple nil :background "black" :foreground "white" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :family "apple-monaco")))) '(cursor ((t (:background "darkgrey"))) t)) (setq make-backup-files nil) (setq inhibit-startup-message t) (load-file "/Volumes/BRUNOISE.JARDIN/TIGRE/emacs/test.el") (load-file "/Volumes/BRUNOISE.JARDIN/TIGRE/emacs/test_commands.el") (fset '{ (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ("{}{" 0 "%d")) arg))) (global-set-key (kbd "C-{") '{) (fset '} (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([19 125 left right return] 0 "%d")) arg))) (global-set-key (kbd "C-}") '}) (fset '[ (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([91 93 18 91 right] 0 "%d")) arg))) (global-set-key (kbd "M-[") '[) (fset '] "\C-s]\C-m") (global-set-key (kbd "M-]") ']) (fset ') "\C-s)") (global-set-key (kbd "C-)") ')) (fset '( (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([40 41 18 40 right] 0 "%d")) arg))) (global-set-key (kbd "C-(") '() Dustin Kick
slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel