Other options, like Aquamacs, are supposed to make Emacs more “Mac-like,” but they’re problematic in the long run because they’re set up so differently from standard Emacs that it’s difficult to use the Emacs manual or follow along with tutorials. Welcome to the cult of Emacs! You’ve made Richard Stallman proud! Configuration You should see something like Figure 2-2.įigure 2-2: The screen Emacs displays when you open it for the first time After you download and unzip the latest version, you can run the Emacs executable under bin\runemacs.exe.Īfter you’ve installed Emacs, open it. I’ve created a repository of all the files you need to configure Emacs for Clojure, available at. NOTE: These tools are constantly being updated, so if the instructions below don't work for you or you want to use the latest configuration, please read the instructions at. Ĭo the following to delete your existing Emacs configuration and install the Clojure-friendly one: Delete ~/.emacs or ~/.emacs.d if they exist. (Windows users, your emacs files will probably live in C:\Users\your_user_name\AppData\Roaming\. AQUAMACS SAMPLE CODE ZIP FILEĭownload the Emacs configuration zip file listed above and unzip it.So, for example, you would delete C:\Users\jason\AppData\Roaming\.emacs.d.) This is where Emacs looks for configuration files, and deleting these files and directories will ensure that you start with a clean slate. Its contents should be a folder, emacs-for-clojure-book1. Run mv path/to/emacs-for- clojure -book1 ~/.emacs.d. When you open Emacs, you may see a lot of activity as Emacs downloads a bunch of useful packages. Once the activity stops, go ahead and just quit Emacs, and then open it again. (If you don't see any activity, that's OK! Quit and restart Emacs just for funsies.) After you do so, you should see a window like the one in Figure 2-3.įigure 2-5: The minibuffer is where Emacs prompts you for input. This area is called the minibuffer, and it is where Emacs prompts you for input. Right now it’s prompting us for a buffer name. You can enter the name of a buffer that is already open, or you can enter a new buffer name. You should now see a completely blank buffer and can just start typing. You’ll find that keys mostly work the way you’d expect. The up, down, left, and right arrow keys move you as you’d expect, and enter creates a new line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |