vlion: cut of the flammarion woodcut, colored (Default)
[personal profile] vlion
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"
  (interactive)
  (save-excursion 
    (goto-char 0) 
    (while (search-forward " " nil t) 
             (replace-match "" nil t))))

vlion: (matrix)
[personal profile] vlion
So you are working in emacs, and you really wish you had auto-complete mode?

Wish no longer!

http://cx4a.org/software/auto-complete/
vatine: z^5+z^3+1 Newton-Raphson fractal (coding)
[personal profile] vatine
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.

hs-mode

Oct. 31st, 2011 10:49 pm
vlion: magical weaponized pony! (weaponized pony)
[personal profile] vlion
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

Hello!

Nov. 1st, 2011 12:31 am
tamouse: (Default)
[personal profile] tamouse
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] vlion
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.

Apologies,
~V'lion
mocker: (Default)
[personal profile] mocker
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] awils1
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] awils1
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] awils1
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] vlion
* 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.

Organizing

Sep. 25th, 2009 09:51 pm
vlion: cut of the flammarion woodcut, colored (Default)
[personal profile] vlion
Good evening,

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

Thanks,
vlion
vlion: cut of the flammarion woodcut, colored (Default)
[personal profile] vlion
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

Profile

emacs: Emacs Community Logo (Default)
emacs community

December 2011

S M T W T F S
    123
45678910
1112131415 1617
18192021222324
25262728293031

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 22nd, 2014 10:19 pm
Powered by Dreamwidth Studios