LambdaBeans is a new IDE for Scheme. Download it here.
(via comp.lang.scheme)
Tag: Ide
Unicode in Emacs
From what I can see, Emacs supports Unicode just fine. I had asked about it on the PLT discussion list, where it was explained that set-language-environment function will configure Emacs to use Unicode wherever possible. Here is the documentation:
(set-language-environment LANGUAGE-NAME)
Set up multi-lingual environment for using LANGUAGE-NAME. This sets the coding system priority and the default input method and sometimes other things. LANGUAGE-NAME should be a string which is the name of a language environment. For example, “Latin-1” specifies the character set for the major languages of Western Europe.
Here is how to get a list of valid LANGUAGE-NAMEs:
(sort (mapcar (lambda (linfo) (car linfo)) language-info-alist) 'string<)
(Execute the command C:u before evaluating it with xe to import the result into the buffer)
Here is how to set it to Unicode:
(set-language-environment "UTF-8")
Uninstall Subversive
Although Subversive is the official Eclipse Subversion provider, the plugin itself doesn’t behave very well. In particular, it is impossible to uninstall it (v0.7) using the “Software Updates” dialog. The only option is to delete the jar files yourself (in 2001 I remember hoping that soon, we wouldn’t have to do stuff like this). Here are the files to delete:
(Disclaimer: this worked for me, I make no promises for what it might do to your Eclipse installation)
org.eclipse.team.svn.core_0.7.5.I20081029-1900.jar org.eclipse.team.svn.help_0.7.5.I20081029-1900.jar org.eclipse.team.svn.resource.ignore.rules.jdt_0.7.5.I20081029-1900.jar org.eclipse.team.svn.ui_0.7.5.I20081029-1900.jar org.eclipse.team.svn_0.7.5.I20081029-1900.jar org.polarion.eclipse.team.svn.connector.javahl15_2.0.5.I20081024-1200.jar org.polarion.eclipse.team.svn.connector.javahl_2.0.5.I20081024-1200.jar org.polarion.eclipse.team.svn.connector.svnkit15_2.0.5.I20081024-1200.jar org.polarion.eclipse.team.svn.connector.svnkit_2.0.5.I20081024-1200.jar org.polarion.eclipse.team.svn.connector_2.0.5.I20081024-1200.jar
10 Essential Emacs Items
Yet another man’s vision of how to master Emacs.
Toggle between Vertical and Horizontal Windows Splitting
On gnu.emacs.help:
Requested: Function that toggles between vertical and horizontal split layout of currently defined windows preferrably preserving splitting ratio.
(defun my-toggle-window-split ()
"Vertical split shows more of each line, horizontal split shows
more lines. This code toggles between them. It only works for
frames with exactly two windows."
(interactive)
(if (= (count-windows) 2)
(let* ((this-win-buffer (window-buffer))
(next-win-buffer (window-buffer (next-window)))
(this-win-edges (window-edges (selected-window)))
(next-win-edges (window-edges (next-window)))
(this-win-2nd (not (and (<= (car this-win-edges)
(car next-win-edges))
(<= (cadr this-win-edges)
(cadr next-win-edges)))))
(splitter
(if (= (car this-win-edges)
(car (window-edges (next-window))))
'split-window-horizontally
'split-window-vertically)))
(delete-other-windows)
(let ((first-win (selected-window)))
(funcall splitter)
(if this-win-2nd (other-window 1))
(set-window-buffer (selected-window) this-win-buffer)
(set-window-buffer (next-window) next-win-buffer)
(select-window first-win)
(if this-win-2nd (other-window 1))))))
Thanks Fabrice.
A peasant revolt against DrScheme!
Here is an interesting thread in the PLT discussion archive discussing the want of beginning programmers only to learn things that are clearly useful!
(surely via the PLT Discussion list, but I can’t recall or find it…)
GNU Emacs on Cygwin
While it is possible to run Emacs on Windows, I suspect that Emacs “expects” to be running on UNIX. As such, I’ve decided to perform an experiment and try to do most of my work in Cygwin, including running Emacs. The following is how I did it:
Steps
- Create a Windows environment variable named ‘CYGWIN’ with the value ‘tty’
- Install Cygwin
- Install Cygwin/X
- Download-and-install Emacs using the setup.exe (as explained in the documentation linked above), choose the packages ’emacs’ and ’emacs-X11′, and be sure to check the “Bin?” checkbox. If you don’t check “Bin?” it will look like the installer is doing something, but in reality it does nothing (guess how I know that?).
- Add this to your .bashrc (see steps below if you want to use Emacs): export DISPLAY=:0.0
- Run: source .bashrc
- Run: XWin -multiwindow &
- Run: xeyes &
- Xeyes should pop up. Now try emacs
- Run: emacs &
- The Emacs welcome screen should appear.
Updating your .bashrc
- Open a terminal
- Type: emacs -nw .bashrc
- Emacs gives you a welcome message. Hit C-l to continue editing.
- Go to the bottom of the page
- Insert an empty line at the end and type in the text listed above
- Hit C-x C-s to save the file
- Hit C-x C-c to exit Emacs
References
Addendum: 16/10/08
I removed the unnecessarily complex step re-starting the shell when source’ing would have done just fine.
I wasn’t happy with my explanation for doing this, so I revised it.
Updated: Switching Caps Lock with Control on Windows
See here.
Emacs Commands Work in OS X
Emacs Commands Work in OS X.
Guess it is time to buy a Mac ;).
10 Essential Emacs Tips
One man’s vision…