vlion: cut of the flammarion woodcut, colored (Default)
[personal profile] vlion2011-12-16 09:27 pm

Dos2Unix conversion

Hello my fellow Emacs users!

This snippet should give you the abiility to remove those ^M characters you get from time to time if you do much emacs work relating to Windows systems. If the first argument in search-forward doesn't copy over right, it can be inserted with C-q C-m.

Have fun!

(defun remove-dos-line-endings () 
"Removes those pesky ^M from a buffer"
    (goto-char 0) 
    (while (search-forward " " nil t) 
             (replace-match "" nil t))))

vlion: (matrix)
[personal profile] vlion2011-11-12 11:26 am
Entry tags:

Auto-complete in Emacs

So you are working in emacs, and you really wish you had auto-complete mode?

Wish no longer!

vatine: z^5+z^3+1 Newton-Raphson fractal (coding)
[personal profile] vatine2011-11-01 07:36 pm
Entry tags:

Handy dual-editor setting

What with having been a "roving unix sysadmin" frequently being deployed to customer sites for troubleshooting, I have found myself knowing enough vi to confuse my fingers.

To that end, I have a small piece of code in my .emacs to take care of most beeps. I hope other in the same situation might find it useful.

(setq wq "Emacs, not vi!")

That ensures that ESC : w q RET gives a useful message rather than beeps.
vlion: magical weaponized pony! (weaponized pony)
[personal profile] vlion2011-10-31 10:49 pm
Entry tags:


Hide-Show mode gives you the ability to code fold reasonably intelligently. Hit a key, fold the code. Hit a key, unfold the code. It's particular handy for Lisp use, I've noticed. I've been able to use it for Python as well.

Here's some snippets

(global-set-key "\M-`" 'hs-toggle-hiding)

(add-hook 'c-mode-common-hook 'hs-minor-mode)
(add-hook 'emacs-lisp-mode-hook 'hs-minor-mode)
(add-hook 'java-mode-hook 'hs-minor-mode)
(add-hook 'lisp-mode-hook 'hs-minor-mode)
(add-hook 'perl-mode-hook 'hs-minor-mode)
(add-hook 'sh-mode-hook 'hs-minor-mode)

Or, to start it, M-x hs-mode.

Reference: http://www.emacswiki.org/cgi-bin/wiki/HideShow
tamouse: (Default)
[personal profile] tamouse2011-11-01 12:31 am


Hi, emacsers!

I just joined on the quasi-invite of [personal profile] vlion. I had mentioned doing some stuff in elisp and they asked "Are you a member of the emacs community on dw?" and then I came to check it out.

Having recently switched back to Linux as a full-time development environment from OS X (don't ask), I was back to using Emacs for writing software, and found out how much I have missed it. (Was using Textmate on the Mac).

There was one feature that Textmate did really well, that stock Emacs only does partially well: snippet insertion and customizing. I found a snippet tool, called yasnippet that pretty much emulates the feature from Textmate, so much so that you can convert and import your Textmate snippets into yasnippet.

Now I feel right at home again in Emacs and am enjoying myself so much!
vlion: source: lisperati (lisp)
[personal profile] vlion2011-10-01 10:09 pm
Entry tags:

Blowing the dust off!

Dear all,

I looked at the last post date on this community and realized I had neglected it. My apologies.

I hope to help advertise and keep this community more active from now on.

mocker: (Default)
[personal profile] mocker2010-09-04 07:44 pm

Capturing notes from Firefox into org-mode

One of the "killer-features" of emacs that's been getting buzz is org-mode

(http://www.orgmode.org). It's a do everything note taker/planning

system that every emacs user should check out.

I stumbled across a page (http://orgmode.org/worg/org-contrib/org-protocol.php) describing how to capture text/links into org files with a Firefox bookmarklet. Now whenever I want to save a snippet of information for later I just hightlight and click the bookmarklet. The information automatically is added to the proper .org file I setup.
awils1: Nothing special; just a pixelated rainbow. (Nail-Polish-1)
[personal profile] awils12010-05-19 11:20 pm

New release.

Better late notification than none!

Emacs 23.2 was released on the 8th.

I get amused at all the vi lovers coming out of the woodwork. Such loveable heathens they are.
awils1: A paiting -- a small blue figure at the far edges of the icon. It is raining, the houses are black, and the light glints (Kawase Hasui- Rain Maekawa)
[personal profile] awils12010-05-10 12:03 am

Adventures in Emacs

Ack, there needs to be more squee here! Or at least some chatter :)

I discovered that Emacs can give directories (i.e. projects) variables, with the power of Elisp, and athough the default mechanism is sort of clunky, it's been hacked to be far more neat and tidy.

Then I spent half an hour fiddling with tab settings, as OTW code requires the silly 2 spaces indentation of Ruby. Seriously, tabs are complicated things, and Emacs likes its defaults!
awils1: An ode to the beauty of math. (Math-2)
[personal profile] awils12010-03-20 09:22 pm

(no subject)

This has been bothering me for far too long.

As a dedicated Emacs user, and a follower of the 'one app to do it all' philosophy, I don't want to have to open a second Emacs session to gain root access to remote (mounted as a WebDAV filesystem) files that need root access to be modified. I do have SSH access to that system, but it's the preferred convention to use the WebDAV interface.

Can Tramp fix this? Is there another option? I had a look at the EmacsWiki, but most (all?) of the examples and Lisp code were not what I was looking for.
vlion: cut of the flammarion woodcut, colored (Default)
[personal profile] vlion2009-11-30 02:54 pm

fun things done with emacs: org-mode

* One of the Really Useful things I use Emacs is use the spreadsheet/table

layout function of org-mode.

* M-x org-mode gets you there.

* TAB tends to do the smart thing.

* | delimits a column.

* |- TAB expands a horizontal line

* Several nice export functions, including one in HTML.
vlion: cut of the flammarion woodcut, colored (Default)
[personal profile] vlion2009-09-25 09:51 pm
Entry tags:


Good evening,

If anyone has any meta-thoughts about the community, this is a post/thread for them.

vlion: cut of the flammarion woodcut, colored (Default)
[personal profile] vlion2009-09-23 09:15 pm
Entry tags:

The First Post

Welcome to the First Post!

As a celebration of Dreamwidth and emacs, I present a livejournal/dreamwidth client for emacs: http://github.com/hober/ljupdate.

Thank you, and good night!


Edit: brought the link up to date with the latest project link