I'm running emacs + slime + sbcl on an iMac High Sierra version 10.13.6. When I evaluate (format t "This is a test ~%) in the slime-repl sbcl, sbcl simply returns nil without printing the output. Can anyone tell me what I'm doing wrong?
Related
I have been installed emacs 25.1 on OS X Yosemite.
brew cask install emacs
Welcome screen looks like:
But must be similar to
So no styles, no pictures.
What am I missing?
UPDATE:
brew install emacs --with-cocoa
Gives the same result.
This behaviour appears to be triggered by the size of the start up screen.
Making the initial start up screen bigger triggers the "fancy splash screen" for me:
emacs -geometry 80x48
Or instead add something to the .emacs file...
;; initial window
(setq initial-frame-alist
'((width . 202) ; character
(height . 60) ; lines
))
;; default/subsequent window
(setq default-frame-alist
'((width . 202) ; character
(height . 60) ; lines
))
(See https://www.emacswiki.org/emacs/FrameSize for more details.)
Alternatively, adjust the function which decides what kind of start up screen to display as described here: https://emacs.stackexchange.com/questions/20976/x11-why-is-the-emacs-logo-image-missing-on-the-welcome-screen
Try brew install emacs --with-cocoa ( brew info emacs for more options ) Or, tap a different formula like emacs-plus that builds Cocoa version by default
I'm quite new to Emacs on my Mac and I have trouble entering signs like: []|{}# etc. Instead the minibuffer shows M-5, M-6 or jumps a word forward (M-l).
I think I got my Emacs here: http://emacsformacosx.com/
and I did install this starter kit: http://kieranhealy.org/emacs-starter-kit.html
(but I hat this problem before)
I know this answer: Unable to type braces and square braces in emacs
but I couldn't get it to work yet.
I use the following -- it will place the Emacs meta key on the Mac CMD key, and free up the ALT key for normal Mac use:
(if (boundp 'ns-command-modifier)
(setq ns-command-modifier 'meta))
(if (boundp 'ns-option-modifier)
(setq ns-option-modifier nil))
I've been playing with LispCabinet off and on for a bit, learning in my spare time. What works on my PC at home, and my work PC at my old job, seems to freeze Emacs or SLIME at my new job.
I'm going through Practical Common Lisp for a refresher, and this function:
(defun prompt-read (prompt)
(format *query-io* "~a: " prompt)
(force-output *query-io*)
(read-line *query-io*))
works perfectly at home. Running it at work, however, freezes after entering a few characters until I kill the interpreter. I've narrowed it down to
(read-line *query-io*)
as running that by itself will cause a freeze. The following also fail:
(read *query-io*)
(read-line *standard-input*)
(read *standard-input*)
I'm completely stumped as to what could be causing this. Any ideas?
I'm running LispCabinet 0.3.3 on Windows 7 Pro SP1.
LispBox works fine, but even reverting to earlier versions of LispCabinet, I still encounter the same failure.
Batch files are intended only for execution from the Emacs command shell or external cmd shell launched form the '((' menu (all environment variables are set up during the Emacs initialization).
I just tried to execute the code you posted on the stackoverflow in
the SBCL SLIME REPL (it also could be launched from the '((' menu), and it works fine on my installation.
The issue is still present in the shell and I suppose that this is an SBCL unicode I/O issue (LispCabinet uses unofficial version of SBCL).
You may try to install the official version into the '/bin/sbcl/' or use ClozureCL instead, if you want to use the command shell instead of SLIME REPL (but SLIME is much more convenient).
I'm running emacs from within a terminal window on Mac OS X. From the bash shell at the same terminal, I can use Shift + <Home> and Shift + <end> to go to the beginning and end of the line respectively. When I'm inside emacs, these don't work. I get the error:
M-[ h is undefined
and
M-[ f is undefined
Is this the fault of emacs or the terminal emulator? I can see how to change the control characters that the terminal sends, but as far as I can tell these are the right control characters to send (and it works outside of emacs).
Put these in your .emacs:
(global-set-key (kbd "M-[ h") 'beginning-of-line)
(global-set-key (kbd "M-[ f") 'end-of-line)
I'm pretty sure it's a problem with Terminal.app as I've got some similar problems with it. I don't know how to fix it, but for your particular problem, you can use C-a and C-e to go to the beginning and end of line, respectively.
I am trying to get inf-ruby to work in Emacs. For the most part it works fine, except for the very annoying habit of echoing every input entered. Does anyone know what could be wrong?
I am using Carbon Emacs on OSX 10.5 with the default Ruby 1.8.6. My irb version is 0.9.5
The odd bit is that inf-ruby worked perfectly one time I opened it, but I can't figure out what I did differently that single time.
Add this to your init.el
;;
(defun echo-false-comint ()
(setq comint-process-echoes t))
(add-hook ’comint-mode-hook ’echo-false-comint)
;;
A little more explanation is on my blog post.