Page 17 of 23

Re: Emacs tips and tricks

Posted: Mon Mar 14, 2016 11:57 am
by slartie
Gekko: What did you have before? The stuff you just listed has worked since Emacs 24 was released.

Re: Emacs tips and tricks

Posted: Mon Mar 14, 2016 12:00 pm
by GekkoP
^ Yep, but instead of add-to-list, this was working before:

Code: Select all

(setq package-archives
       `(("gnu"   . "https://elpa.gnu.org/packages/")
         ("melpa" . "https://melpa.org/packages/")))

Re: Emacs tips and tricks

Posted: Mon Mar 14, 2016 12:07 pm
by slartie
Yeah, that should work. Unless of course you're using a nightly build?

Edit: It works on 24.4.1 and 24.5. Haven't tried the latest source.

Re: Emacs tips and tricks

Posted: Mon Mar 14, 2016 12:08 pm
by GekkoP
I track Emacs latest developments. It was working until yesterday, but no problem, I leave it with add-to-list.

Re: Emacs tips and tricks

Posted: Wed Mar 16, 2016 11:16 am
by GekkoP
A life saver:

Code: Select all

(setq confirm-kill-emacs #'y-or-n-p)

Re: Emacs tips and tricks

Posted: Fri Mar 25, 2016 3:15 pm
by GekkoP
I use dired a lot. Pragmatic Emacs has a couple of neat suggestions that improved my daily workflow:

- dired-narrow: http://pragmaticemacs.com/emacs/dynamic ... ed-narrow/
- recently visited directories: http://pragmaticemacs.com/emacs/open-a- ... revisited/

Simple stuff, but really handy.

Re: Emacs tips and tricks

Posted: Mon Mar 28, 2016 11:21 pm
by Dr_Chroot
So I went ahead and jumped into this head-first: spacemacs.

It isn't its own application, per se, but rather a .emacs.d configuration.
Spacemacs is a new way to experience Emacs -- a sophisticated and polished set-up focused on ergonomics, mnemonics and consistency.

Just clone it, launch it, then press the space bar to explore the interactive list of carefully-chosen key bindings. You can also press the home buffer's [?] button for some great first key bindings to try.

Spacemacs can be used naturally by both Emacs and Vim users -- you can even mix the two editing styles. Switching easily between input styles makes Spacemacs a great tool for pair-programming.
"Installation" was a breeze.

Code: Select all

git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
I think its an interesting project, although it probably won't replace just plain old GNU Emacs with a simple .emacs.

Re: Emacs tips and tricks

Posted: Tue Mar 29, 2016 6:19 am
by machinebacon
this looks pretty and pretty interesting. thanks for testing it. is there anything you really like or hate about it?

Re: Emacs tips and tricks

Posted: Tue Mar 29, 2016 6:45 am
by franksinistra
^^ Interesting, seems to be a well thought out project. RTFMed a bit, uniformed key-bindings are cool, and adding personal layers are pretty easy. That mode-line though... too distracting, and 211 packages installed is a cause of concern.
Will try it tonight, for the sake of curiosity.

Re: Emacs tips and tricks

Posted: Tue Mar 29, 2016 7:58 am
by GekkoP
I tried it.

It is a very nice piece of software, well-documented and able to bring the best of Emacs and Vim together.

Personally, I'm too proud of my own Emacs setup to move on to another configuration. As much as I appreciate the effort behind Spacemacs, I just like the way my setup is organised. And I'm not concerned about the bloat, because my setup is not light either.

I know Spacemacs is not a starter kit, of course, but well, maybe it's just me being childish.

Re: Emacs tips and tricks

Posted: Tue Mar 29, 2016 12:26 pm
by franksinistra
^ Your configs are just as good (I know because sometimes i steal one or two trick from your configs)

anyway i tried spacemacs, de-bloat it a bit (cleaned all traces of 'evil'), add some sprinkles (circe, mingus). Aside from a few opinionated things i think this is pretty cool.

Re: Emacs tips and tricks

Posted: Tue Mar 29, 2016 2:14 pm
by GekkoP
^ Great job.
An interesting read about "why Spacemacs?": http://www.lunaryorn.com/2016/01/26/why-spacemacs.html

Re: Emacs tips and tricks

Posted: Tue Mar 29, 2016 5:32 pm
by Dr_Chroot
@machinebacon To be honest, there really isn't anything that I particularly hate about it, except for perhaps the rather large size the default is. What I do love is that it is new and interesting :D Something new to play with...
I just like the way my setup is organised.
Gekko, you already have a wonderful Emacs setup :D I suppose this is just more for someone like me who hasn't mastered the art of Emacs-fu quite yet.

And yes, frank, can't forget the mingus! It has replaced ncmpcpp almost entirely on my installs.

Re: Emacs tips and tricks

Posted: Tue Mar 29, 2016 5:38 pm
by GekkoP
^ :) Thanks. Although Spacemacs is intriguing, because it's a new way of thinking about configuring your favourite editor. It took me a while to get used to use-package, maybe it'll take me just a while longer to become a Spacemacs lover.

Re: Emacs tips and tricks

Posted: Tue Mar 29, 2016 6:24 pm
by franksinistra
^^ yup i like mingus interface...

Re: Emacs tips and tricks

Posted: Thu Mar 31, 2016 11:05 am
by GekkoP
If you fancy gaming, have a texty fun: http://sami.salkosuo.net/elite-for-emacs/

Re: Emacs tips and tricks

Posted: Sat Apr 02, 2016 9:10 am
by GekkoP

Re: Emacs tips and tricks

Posted: Tue Apr 05, 2016 4:43 pm
by GekkoP
Down the rabbit hole with modules: http://diobla.info/blog-archive/modules-tut.html

Re: Emacs tips and tricks

Posted: Thu Apr 07, 2016 9:22 am
by machinebacon
^ that's very interesting... never heard of it before.

Re: Emacs tips and tricks

Posted: Thu Apr 07, 2016 3:20 pm
by GekkoP
^ It's all very GPL-driven, so I don't know how many will be able to contribute actually. Living in the Emacs "ecosystem", I've come to understand that not many are willing to comply with that license.