![]() If you have unsaved changes, you will be asked whether or not you'd like to save your changes before quitting. Ctl-x Ctl-w lets you save the file under a different name (like "Save As" in graphical editors).Ĭtl-x Ctl-c quits Emacs. Saving and Quitting emacsĬtl-x Ctl-s save the current changes to a file. Again, if this file exists in your current directory it will open it, or it will create it if it does not already exist in your current directory. If emacs is already open and you would like to edit a different file, use the Ctl-x Ctl-f command. To open a file in emacs (or create a new one if a file with this name does not exist): $ emacs filename Otherwise, some of the keyboard shortcuts below will not work! Opening emacs ![]() This will ensure that your Meta key is properly set to be Option (Mac) or Alt (Windows). The two keys it uses for these shortcuts are Control and Meta (which is Alt, or Option on a Mac).īefore continuing: if you're using a Mac, or a Windows computer with SecureCRT, make sure you have followed the instructions to configure your Meta key, as described in the logging-in guide. ![]() OverviewĮmacs works similarly to other editors you might have used it lets you enter and edit text, and has certain keyboard shortcuts to perform common commands. Open a new file in emacs to see what the theme looks like. Finally, move your cursor to Save Theme Settings and hit ENTER to save. Once there, pick a theme by moving your cursor onto a theme and hitting ENTER. This will take you to a page where you can choose your own theme. If you don't like the theme chosen in our configuration, open any file in emacs, and then type M-x customize-themes ( M means the "Meta" key, which is discussed later on). If you're interested, you can further customize the default color theme. If you don't do this, you won't be able to use some of the shortcuts and commands highlighted in lecture and the guides. emacs file on your system to know what preferences you would like, and this command downloads our pre-made. To do this, execute the following command after logging into myth: wget -O ~/.emacsĮmacs looks for a special. This guide can get you up and running with emacs! Getting Startedīefore you start using emacs, you'll want to configure it to use the CS107 default preferences this sets up the editor to do things like display line numbers, standardize indentation, etc. It is a text editor that was modified by Richard Stallman (also see Richard Stallman on Wikipedia, who has an interesting outlook on life. Written by Michael Chang, Chris Gregg and Julie Zelenski, with modifications by Wesley Rodriguez and Nick TroccoliĮmacs is the command-line text editor used in CS107 to work on projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |