background preloader

Emacs

Facebook Twitter

Text

Slime. Elisp. Write Room. WriteRoom or DarkRoom is a simple FullScreen distraction-free workspace that some writers like. The code below might make Emacs work similarly by getting rid of all the distractions. Full Screen Requirements: wmctrl shell command. Modified from FullScreen: (defun switch-full-screen (&optional ii) (interactive "p") (if (> ii 0) (shell-command "wmctrl -r :ACTIVE: -badd,fullscreen")) (if (< ii 0) (shell-command "wmctrl -r :ACTIVE: -bremove,fullscreen")) (if (equal ii 0) (shell-command "wmctrl -r :ACTIVE: -btoggle,fullscreen"))) Dark Room Requirements: color-themes.el is used for the green on black retro theme.

Set the mode (from the thread (defun darkroom-mode () "Make things simple-looking by removing decoration and choosing a simple theme. " Cancel the mode (defun darkroom-mode-reset () (interactive) (switch-full-screen -1) (color-theme-subtle-hacker) ;; Choose your favorite theme (menu-bar-mode 1) (tool-bar-mode 1) (scroll-bar-mode 1) (set-left-margin 0)) Ymacs -- AJAX source code editor with syntax highlighting and au.

Emacs for OSX. Emacs Customization Grab Bag. Setting fonts. In the brave new world of Emacs 23, on X, you can also use the somewhat clearer Fontname-<size> format. You can get a list of the fonts installed on your system with the fc-list commond; if you only want to get the monospaced fonts, use $ fc-list :spacing=mono For details, see the FontConfig user manual. Note that installing fonts under X is rather easy as well these days; in most cases all you need to do is put the .ttf-files in your ~/.fonts directory and all will be find, although some program might require a restart. Once you have chosen a font, you can put it in your ~/.Xdefaults: Emacs.font: Envy Code R-10 and don't forget to run xrdb ~/.Xdefaults afterwards, to tell X about the changes.

Alternatively, you can put in your .emacs something like: (if (eq system-type 'windows-nt) (set-default-font "-outline-Consolas-normal-r-normal-normal-14-97-96-96-c-*-iso8859-1")) (if (eq window-system 'x) (set-default-font "Inconsolata-11")) What emacs commands to use to browse around a large code base : Geiser. Update: Since a few months ago, Geiser has its own home in the interwebs. I hope you’ll pardon a shameless plug of one of my latest hacks, Geiser, a new Emacs-Scheme interaction mode. After having lots of fun implementing Fuel, i was left with a lot of Elisp code that, i realized, could be easily reused for languages other than Factor.

I also decided that it was high time to stop whining about Scheme environments not being dynamic enough and do something about it. As they say, talk is cheap. Thusly, Geiser was born, and today it came of 0.0.1 0.0.2 age, as per the git tag in its repository. If you know Slime or Fuel, you know what Geiser aims at: a pleasant, live interaction with Scheme without leaving Emacs. Currently, Geiser supports two Scheme implementations: Guile and PLT. Both Guile and PLT have given me many pleasant surprises.

Back to Geiser, this being an alpha release, there’s no screencasts or real documentation… the code just escaped leaving a blood trail, you know. Like this: The Power That is GNU Emacs. April 30, 2009 # If you've never been convinced before that Emacs is the text editor in which dreams are made from, or that inside Emacs there are unicorns manipulating your text, don't expect me to convince you. I'm not going to sit here and type out a Top 10 list of reasons you should be using GNU Emacs, nor am I going to tell you that you are an idiot for using VI (I was a hardcore, "down with emacs," VI user in the late 90s and early 00s).

Instead, I'm going to talk about why Emacs works for me. If you're so inclined to give it a try after reading this, then so be it. Searching Google is bound to get you a ton of good information, or you could just start Emacs by typing emacs at the terminal and typing C-h (C- means hold down the control key and hit h [in this case]. M-key means hold down the Meta key [ALT on most keyboards] and hit key.

See, Emacs responds logically to C-h, with "Help. " So, I fired up Phoenix (or was it Firebird then? (global-set-key "\C-h" 'delete-backward-char) Understanding GNU Emacs and Tabs. In Place Annotations. With this package you can add annotations to your files without modifying them. Each file can have multiple annotations at various buffer positions. The annotation texts are not parts of the files, they are stored separately. All annotations are stored in a common file, so searching annotations is trivial.

Original author is TamasPatrovics. Lisp:ipa.el Lisp:anything-ipa.el is Anything interface. Prettier Annotations I like overlay which is above the target line. . – rubikitch You can define a different face: (defface ipa '((t :foreground "green")) "Face for annotations. " Also consider this changed version of the ipa-set-overlay-text above to indent: Thank you. Icon Annotations I like using an icon instead of displaying text directly in the buffer. (defun ipa-set-overlay-text (overlay text) (if (string-match ipa-annotation-id-regexp text) (setq text (match-string 2 text))) (overlay-put overlay 'after-string (if (equal text "") "" (propertize "! " – Jingtao xu Problem with VisibleLines – DanielHackney. Michaelw&#039;s Emacs Hackery. I switched from XEmacs to GNU Emacs quite some time ago, so my packages usually are better tested there.

Currently I use Emacs version: GNU Emacs 22.0.92.1 (i386-apple-darwin8.8.1, Carbon Version 1.6.0) of 2007-01-06 Previously, I used: GNU Emacs 22.0.50.1 (i386-apple-darwin8.7.1) of 2006-08-19 GNU Emacs 22.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.8.17) of 2006-05-05, modified by Debian GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit) of 2002-12-20 Before that, I did not keep track.

Hackery redshank mode, a collection of macros which speed up common Lisp editing tasks (pun intended). Mwe-cambridge-permute.el, transforms text into gibberish which still can be understood amazingly well. Controversal Issues (transient-mark-mode 1) Useful Emacs Resources EmacsWiki My EmacsWiki Homepage. Zhivago | paakku: your code will produce a circular linked list paakku | Zhivago: No it will not. An Introduction to the Emacs Editor. TextMate Minor Mode. 02 December 2008 TextMate Minor Mode is an Emacs minor mode that emulates some awesome TextMate features. Like ⌘T (find file in project). And ⇧⌘T (go to symbol in file). And more! Really, the README says it all. Installation: $ cd ~/.emacs.d/vendor $ git clone In your emacs config: (add-to-list 'load-path "~/.emacs.d/vendor/textmate.el")(require 'textmate)(textmate-mode) Or just grab the elisp: textmate.el TextMate Minor Mode was written for Aquamacs but works great on console Emacs, CVS Emacs.app and Carbon Emacs.

The Emacs Way. I had a good beer talk this week with Merlyn about IDEs and Emacs. Merlyn's been playing with Clojure, a Lisp for the JVM. And he was looking at the effort it might take to provide support for Clojure in IntelliJ. Our conversation started briefly before the meeting. "Why not Emacs? ", I asked. Merlyn's face scrunched up a bit in that look that Emacs seems to cause on many programmers' faces.

"Emacs has had great support for Lisp for decades. ", I pleaded. "Yeah. After the meeting, over at the Side Door , with a good, draft Pilsner in hand, I was asked by Merlyn, "What's the fundamental difference between an IDE like IntelliJ or Eclipse and Emacs? " The argument I made was this: In Emacs, everything is a buffer. And across all these buffers the contents are made up of text, but also things analagous to words, sentences, paragraphs, etc. I compared this to what little I know of the Eclipse-like IDE, especially Eclipse as a framework for building extensions. Horse hockey! Emacs - TextMate like snippets. Minor Modes I Like.

I’m looking at all the lines in my .emacs matching “-mode “ … → MinorMode You find some comments and EmacsWiki links after the code. Maybe some of these were made the default in Emacs 23? I get confused easily, and I haven’t checked. (global-font-lock-mode 1) (show-paren-mode 1) (tool-bar-mode -1) (menu-bar-mode -1) (scroll-bar-mode -1) (blink-cursor-mode -1) (winner-mode 1) (windmove-default-keybindings) (column-number-mode 1) (savehist-mode 1) (when (fboundp 'mac-print-mode) (mac-print-mode 1) (global-set-key (kbd "M-p") 'mac-print-buffer)) (iswitchb-mode 1) I want Emacs to highlight matching parenthesis (show paren) and highlight code (global font lock). → EnablingFontLock Yes, I like to keep all the distracting stuff away from my Emacs frames (scroll bar, tool bar, menu bar). → ScrollBar, MenuBar I also hate a blinking cursor (blink cursor). → NonBlinkingCursor Occasionally I feel like the Emacs window configurations need an “undo” (winner), but in actual fact I rarely use it.

Tags: Emacs. IM from GNU Emacs with BitlBee. Understanding Emacs Mark and Point. Another terminology which brings some form of confusion to newbies is the term Mark and Point used in the manual and in descriptions of Emacs editing actions. Truth to be told, I too just had a fuzzy idea what mark was all about when I first started and took point to be where ever the cursor was currently. Well, point is exactly that; it is the current position of the cursor on your Emacs buffer. And it's there in the Emacs Tutorial too.The location of the cursor in the text is also called "point". To paraphrase, the cursor shows on the screen where point is located in the text. So, what is mark, then? Mark is the equivalent of dropping anchor or "marking" the start of a position in a buffer.

Is there an order to mark and point? No, from the manual The ends of the region are always point and the mark. Smarter trailing whitespace deletion. I used to use delete-trailing-whitespace in my local-file-write-hooks for any source file I edited, but I had to disable it a while back. Many files containing legacy source were extremely messy in this regard, and it made making simple fixes harder to track, since there was a large amount of noise in the diff from the whitespace changes. But I just solved this. Here at Digg , we document all new code with phpDocumentor . Leveraging this, I wrote a new function to examine the header of the source file and strip whitespace if I have an @author tag. (defun maybe-delete-trailing-whitespace () "Delete trailing whitespace if I am the author of this file. " (interactive) (and (delete-trailing-whitespacep) (delete-trailing-whitespace))) (defun delete-trailing-whitespacep () "Should we delete trailing whitespace when saving this file?

" It works a treat, happily stripping trailing whitespace if I’m listed as an author in the header, and leaving it unmolested otherwise. Circle squared. Managing your emacs config. By hitesh on 2008-5-22 Not too long ago I found my emacs customizations were out of control. Over some time I had kept adding imports and configuration of various libraries and I was having trouble keeping track of it all. Some libs had been added for trial purposes and managed to overstay their welcome. Others were there because of dependencies or some other reason which I could no longer remember. I was being a good programmer and had things modularly split up among several files. But as new library versions came out, dependencies changed and I encountered the need to use emacs on multiple computers, it became a mess. So one day I decided to just nuke all my customizations and start again from scratch.

Another thing I did was to actually consolidate most of the customization into my dot emacs. So now, my dot emacs has common customizations followed by customizations based on how emacs was run (tty, X11, etc.) and lastly, customizations based on the hostname that I'm on. Stefan Robert. A million lines of Lisp. People rave about Lisp, and one reason why is because you can use macros to make new kinds of abstractions. Sure, in other languages you can write functions to define new procedures, but in Lisp you can write macros to define new control flow constructs (for starters). You can write functions that write functions and programs that write programs, a power which is pretty much unimaginable in most other languages. In other languages you can only stack your abstractions so high, but in Lisp, the sky's the limit. Because of macros, and others of its features, Lisp is sometimes called the programmable programming language. I suspect that because of macros, Lisp programs grow in a way that is qualitatively different from programs in other languages.

In pretty much any language, a program with a million lines of code is regarded with considerable respect. It turns that such a program exists, and is widely available. Emacs file uploader. 000webhost.com ( $0.00 webhost ), is an industry leader in providing top class free web hosting services without advertising! There are no hidden costs, no adverts, and no restrictive terms. Lighting fast speeds, maximum reliability and fanatical user support are just a few of the features you'll receive with our service. We are probably the only free web hosting company that has proof for "99% uptime guarantee". Check our uptime stats . We managed to reach even 99.9% uptime for most of the servers. Can your current hosting provider show you any proof for that "99.9% uptime" they guarantee? 1500 MB Disk Space, 100 GB Data Transfer Every account receives 1500MB space and a whopping 100GB bandwidth, made possible by the unmetered connections our servers utilise.

PHP with MySQL Database Support Unlike other free webhosts we do support PHP and MySQL with no restrictions. PHP mail() function and Sendmail Curl, GD2 library, XML, Zend, .htaccess support fopen() and PHP sockets cPanel Control Panel. (ap)Proximated (X)Emacs Powered by Python. Emacs as a powerful Python IDE. May 09, 2008 at 03:27 PM | categories: python, enigma curry, emacs | 29 Comments Update 01/2009: this post is still valid, but see updated installation instructions here. Last night at the Python user group I gave a short demo on using Emacs as a Python editor/IDE. My macbook pro refused to display on the projector so I thought my demo was going to be a 'no go'. Thankfully, sontek allowed me to use his Linux laptop. I hurriedly copied over my emacs environment, installed a few packages and was able to present after all.

My Emacs Environment Below are the Emacs features most applicable to Python development: Rope and Ropemacs Rope is a general (non-emacs specific) Python IDE library. A lot of people, for whatever reason, don't feel that Emacs is an IDE at all. I've tarred up my Emacs environment for general consumption. Install Pymacs Install Rope and Ropemacs BTW, those three packages should be the only packages other than Emacs you'll need. Extra tips: Some more fun Emacs evangelism: My Good Easy (2007) [dive into mark]

A CGI script with Emacs Lisp. Why it&#039;s hard to teach EMACS.