(On Topic: GNU && Linux) Emacs

From: Benjamin Stewart 
I just wanted to say thanks to all those who touted Emacs in the recent
thread about IDEs. I tried it again for the third time, and this time I
think I'm a believer! I've used several editors, and been wrangled by a
couple of different IDEs now, and I've never encountered one that gets out
of my way like Emacs does, and there's no text format it doesn't handle! I'm
mainly using it for Python editing, and it's nice to be able to make a
change to a function, then send it to an interpreter for testing with just a
keystroke, without ever leaving the window. Version Control integration is
also just Done Right (I'm looking at you, Eclipse!). Plus, if I get bored, I
can always M-x dissociated-press whatever I've been working on (or a
chugalug thread), and sit back for some laughs!

So, does anybody have some tips to make it even better?


                              Benjamin Stewart


=============================================================== From: Bobby ------------------------------------------------------ M-x butterfly --- It really works M-x dunnet --- If you are into text adventures Just scanning through my .emacs, there are several things I use that I really like. Look all of these up on emacswiki.org, there you can find installation instructions and such: ido, smex, php-mode, php-doc, auto-complete, reddit, color-theme, multi-term, dired+, buff-menu+, ring+, tramp, erc, twittering-mode, and emms. Also, you can install ELPA from tromey.com/elpa/ -- it is a package manager for emacs lisp packages, and a few of the packages I already mentioned can be installed through it, making the process much easier. Also, fire up ERC and join #emacs on freenode, plenty of people will answer your noob questions there. Good Luck!

=============================================================== From: Dan Lyke ------------------------------------------------------ On Wed, 20 Jul 2011 08:09:46 -0400 Benjamin Stewart wrote: I've recently discovered longlines-mode, haven't made as much use of it yet as I could, but it looks promising. Other chocolatey goodness from my .emacs.d/init.el: ;; Make files that Emacs thinks should be executable executable. ;;http://www.masteringemacs.org/articles/2011/01/19/script-files-executable-automatically/ (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p) ;; My file for local lisp (setq load-path (cons "~/emacs" load-path)) ;; JavaScript mode (autoload 'js2-mode "js2" nil t) (add-to-list 'auto-mode-alist '("\.js$" . js2-mode)) ;; MediaWiki mode - allows direct editing of Mediawiki files (require 'mediawiki) ;; Tramp - allows editing of ssh accessible files (require 'tramp) (setq tramp-default-method "scp") ;; Bounce parens: ;; http://elfs.livejournal.com/1216037.html (defun paren-bounce () (interactive) (let ((prev-char (char-to-string (preceding-char))) (next-char (char-to-string (following-char)))) (cond ((string-match "[[{(]" prev-char) (backward-sexp 1)) (t (error "%s" "Not an expression boundary."))))) (global-set-key [(control ?%)] 'paren-bounce)

=============================================================== From: Stephen Haywood ------------------------------------------------------ Not to start a flame war but I actually prefer not to learn a whole new language just to use my text editor. On linux I use nano, on Windows notepad++ or KomodoEdit. le-automatically/ )))) dary.")))))

=============================================================== From: James Nylen ------------------------------------------------------ The tradeoff is that the editors with their own languages are extremely, extremely powerful once you learn them well. I know this is true for vim, and it seems like it's true for emacs as well.

=============================================================== From: Bobby ------------------------------------------------------ Stephen, if you don't intend on starting a flame war, saying that you have to "learn a whole new language just to use my text editor" is not the way to go about it. That is completely false. All you need to know to use Emacs is how to navigate menus and click on icons. Just as you would with any other text editor. Using it well means learning the key bindings and customizing Emacs to fit your work. You only need to learn Emacs Lisp if you plan on extending Emacs or adding third-party extensions to Emacs. M-x customize allows you to customize the environment, and all of the commands can be accessed through the menu system.

=============================================================== From: Benjamin Stewart ------------------------------------------------------ Indeed. Here's a sample of what you get for spending an hour in the built-in Tutorial mode of either vim or emacs (I know and like both, take that editor warriors!). None of this functionality required me to learn a language per se, only a command. I'll grant you that the commands are convoluted until you learn them, but there's built-in help! * In one command, I can uncomment the next 17 lines of a config file * In one command, I can search-and-replace every instance of $foo with $bar * In one command, I can run an external program to check a config-file without leaving the editor first * Syntax highlighting on the cli * Stack based kill-ring "multiple clipboard" (in Emacs) * Powerful undo: I can get to any point in the file's history,

=============================================================== From: Dave Brockman ------------------------------------------------------ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 But if you learn a handful of commands in vi, you can edit text files on any *nix server, over a dial-up SSH session.... I've only ever once encountered *nix boxes without some flavor of vi, and I had to learn ex. Or rather how to use the ex commands I knew from vi in a line editor :) Regards, dtb -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4nRfUACgkQABP1RO+tr2R/ogCgoRbznIOqUBwbtpO9koCssUxx dxAAoLjl/O7/Lrc/MiRng0SxW7BT/g8/ =2MG+ -----END PGP SIGNATURE-----

=============================================================== From: Stephen Haywood ------------------------------------------------------ Good natured ribbing was my only intent. I know quite well how powerful emacs and vi are. I've always been too lazy to use them productively. e to is r g g e vim, : it m utable-automatically/ char)))) boundary.")))))

=============================================================== From: Kenneth Ratliff ------------------------------------------------------ I prefer vi for more practical reasons. It's for the same reason I prefer perl for doing my scripting. Perl and vi are installed on virtually every modern unix by default, so by learning and leveraging those tools, I can be just as effective on any platform I'm working under. Trying to work on a box that doesn't have the software you're used to, and you can't install it, will impact productivity.

=============================================================== From: Dan Lyke ------------------------------------------------------ LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQ0KSGFzaDogU0hBMQ0KDQpPbiBXZWQs IDIwIEp1bCAyMDExIDE3OjE3OjQxIC0wNDAwDQpEYXZlIEJyb2NrbWFuIDxkYXZlQGJyb2NrbWFu cy5jb20+IHdyb3RlOg0KPiBCdXQgaWYgeW91IGxlYXJuIGEgaGFuZGZ1bCBvZiBjb21tYW5kcyBp biB2aSwgeW91IGNhbiBlZGl0IHRleHQgZmlsZXMNCj4gb24gYW55ICpuaXggc2VydmVyLCBvdmVy IGEgZGlhbC11cCBTU0ggc2Vzc2lvbi4uLi4NCg0KR3Jpbi4gVGhpcyBpcywgaW4gZmFjdCwgcG9z c2libGUgdG8gZG8gd2l0aG91dCBjb21taXR0aW5nIHRvIHVzaW5nIHZpIGFzDQp5b3VyIHByaW1h cnkgZWRpdG9yLg0KDQpBbmQsIHllcywgSSd2ZSBwdXQgZWx2aXMgKGEgc3VwZXIgbGlnaHR3ZWln aHQgdmkpIG9uIGFuIGVtYmVkZGVkIGRldmljZQ0KYmVjYXVzZSBJIHdhcyBzaWNrIG9mIGNvcHkg YW5kIHBhc3RpbmcgZmlsZSBjaGFuZ2VzIGludG8gYSB0ZXJtaW5hbA0KdXNpbmcgY2F0Li4uDQoN ClVzaW5nIGV4IGlzIGp1c3Qgd3JvbmcsIHRob3VnaC4NCg0KRGFuDQotLS0tLUJFR0lOIFBHUCBT SUdOQVRVUkUtLS0tLQ0KVmVyc2lvbjogR251UEcgdjEuNC4xMSAoR05VL0xpbnV4KQ0KDQppUUVj QkFFQkFnQUdCUUpPSjR6QUFBb0pFQXZkczZJZUdMUERtSW9ILzNaK0IzV09UaU14NGVZOVgyRXdm VkRhDQpSY2tXY0d4ODgyUDk2Q1MxMmdEVURrRi80UjhkL0JHcWVqaS9iSlVOdi9sU0YwSmhKb0RY VktUVFZaeUFFM1FlDQo3aVBoL2xXZEN2TW9lT1pXYWpLMlN4MS9MbHU2QmJaS3E1Z0tDQ3lIclZG azZ2YUhRNkNhenN4R1IvVFdZNnFHDQpOQXR0Qjd6dVc2ZGRPRlF3Qm8xOGgweHd1aUtpaEtFclJK NGliNVJnY1VKTnRGZDYzUGxNL1Q4SlhHWjF2TVZCDQp6b1FHMFNnRENENDNNWmtreFZTS1NlRVN6 UVlxRWNyWUE5d0tSZFhndWZaTFpsSmFpUjZvaFU0SC9seUd4aUYwDQpUaHVKSUhXU0JIZS9JK1hU NC9uZmN2MnBGTjc3c2NLdDdOaHUzWFFHanA4eHFIVHV2RE1RUlNmZTdabUhDNnM9DQo9M0piTg0K LS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tDQo=

=============================================================== From: Dave Brockman ------------------------------------------------------ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I never said you couldn't use something else, just pointing out a useful tidbit :) When I look back at it now.... it's flat out amazing what little hardware (486 DX2 66 IIRC, 128 MB, ~200MB SCSI2 HDD, NCR MP-RAS installed from tape) could run an entire Krogers in the mid 90's. From an OS standpoint, they were stripped bare -- no man pages, no vi, no compiler -- csh, ex and rtools was about it, outside of the application specific utilities the App team played with :) Regards, dtb -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4nmxYACgkQABP1RO+tr2TdKACgnPaysYmIVybr+YhcBKDhV9Fj 9QsAn0xt37GHfpG4ZmmNj3tpFTzQ8dgS =tx/x -----END PGP SIGNATURE-----

=============================================================== From: Dan Lyke ------------------------------------------------------ LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQ0KSGFzaDogU0hBMQ0KDQpPbiBXZWQs IDIwIEp1bCAyMDExIDIzOjIwOjU0IC0wNDAwDQpEYXZlIEJyb2NrbWFuIDxkYXZlQGJyb2NrbWFu cy5jb20+IHdyb3RlOg0KPiBXaGVuIEkgbG9vayBiYWNrIGF0IGl0IG5vdy4uLi4gaXQncyBmbGF0 IG91dCBhbWF6aW5nIHdoYXQgbGl0dGxlDQo+IGhhcmR3YXJlICg0ODYgRFgyIDY2IElJUkMsIDEy OCBNQiwgfjIwME1CIFNDU0kyIEhERCwgTkNSIE1QLVJBUw0KPiBpbnN0YWxsZWQgZnJvbSB0YXBl KSBjb3VsZCBydW4gYW4gZW50aXJlIEtyb2dlcnMgaW4gdGhlIG1pZCA5MCdzLg0KDQpUaGF0IG11 Y2ggbWVtb3J5IG9uIGFuIG9sZCBtYWNoaW5lLCBJJ20gbm90IHN1cnByaXNlZCBpdCB3b3JrZWQg ZmFpcmx5DQp3ZWxsLiBSZW1lbWJlcmluZyB3aGF0IHdlIHVzZWQgdG8gZG8gb24gMU1IeiBtYWNo aW5lcyB3aXRoIDY0ayBvZg0KbWVtb3J5IChvciAyNU1IeiBtYWNoaW5lcyB3aXRoIDY0ayBwZXIg dXNlciBzcGFjZSwgdGhlIHRhcmdldCBwbGF0Zm9ybQ0Kb2YgdGhlIGZpcnN0IEhUTUwgYnJvd3Nl ciBJIHdyb3RlIChUQkJTIHdpdGggVERCUykpLCBpdCdzIGFjdHVhbGx5DQphbWF6aW5nIGhvdyBt dWNoIGNvbXB1dGUgd2UgcH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ZFYXBEYTMxTGZxMlE2NThyeDJBVWdGWGRuNjdDR3pneEpEVFRFS0JZb1I4Qm8z MkhTUlM2ak9aTmQrDQpMaUlGSTQxNVcrT0xjK1JFU3NlQmRKT09RM1R5ZzIwNFJMMHAzYjNLMHBV bnBSMFVyN3dudnY3dGl5UnZOZ2tSDQpvQU5Fd2s1MkIxc245ZVlrRWF6aE9LWFZXSmhjekxMV3cv VmhEOWM3Rk1ITmR2SDhXTTFLMWpZM0toMHh3QzUwDQpwK2ZFUHd6c253ZVNsSkh0T2JPdk1PTXN4 L01KdzNkcXdtZWRFbXdmUG1iRHZFYzBNTUFiWWNBU2QyZnZmK1U2DQoxWnRyZk10MHRCNWdwbDAz U011TnY5em1MQlNZSE43MGVURXQzeDFoc3VzbW5BYjJuRm1qbXBaN2ZGaC9iRWc9DQo9S2ZsNA0K LS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tDQo=

=============================================================== From: Kenneth Ratliff ------------------------------------------------------ I think what screws with me the most is that the word 'gig' is now attached to numbers when talking about video card memory. We're a long ways away from my trusty Voodoo 2