Home Download Buy Blog Forum Support

you can teach an old dog new tricks! (Emacs user experience)

you can teach an old dog new tricks! (Emacs user experience)

Postby mindlube on Fri Mar 15, 2013 2:20 am

I've been an Emacs user for over 20 years but I think you have brought me into the 21st century! :o Here is just some feedback for the next person who searches for Emacs :idea:

I realized that the past few weeks since trying Sublime (and buying license), I've been been launching Emacs hardly at all. I've always gravitated toward editors which offer emacs keybindings. a.k.a GNU Readline, the same keybindings that the Bash shell and a ton of other unix and OS X apps have!

So the sublemacspro package is a must-have for anyone wanting a nice set of keybindings, or specifically coming from Emacs
http://www.sublimetext.com/forum/viewtopic.php?f=4&t=6719&p=44228&hilit=emacs#p44228
Honestly, I would kinda expect for this to be a core feature not in a package. Vintage mode is only for Vi users from what I gather? Biased!

In my Key Bindings - User, I override the following settings from sublemacspro. When word-wrap is enabled, I really want hardbol and hardeol. I totally though this was a Sublime bug at first, but like most things with Sublime it's configurable:
Code: Select all
{ "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "hardbol", "extend": false} },
   { "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "hardeol", "extend": false} },
   { "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "hardeol", "extend": true}, "context":
     [
       { "key": "sbp_emacs_has_mark", "operator": "equal", "operand": true }
       ]
    }

I thought the default scroll bar behavior was kind of bizarre too so I found this Preferences setting:
Code: Select all
"scroll_past_end": false

Various stuff I appreciate about Sublime:
-It obviously doesn't implement every feature possible, but the things that are implemented are top knotch
-The text rendering, coloring, selecting, scrolling is just perfect, on Mac and Win (haven't tried Linux yet)
-The tabs are beautiful. I love how you can split the window up in rows or columns and drag and drop tabs around even between windows. Lots of editors dont even allow splitting of the Window. Yay I will never have to type C-x 2, C-x C-b, C-x o , etc. again
- The projects + workspaces facility, while confusing at first, does seem very useful.
- GoTo anything. duh!
- The symbols and tagging seems very useful too, although I haven't got into it very much
- Sublime "feels" really good. Only when you spend 6-12 hours a day writing code can you really get into how an editor feels. And that's hard to put into words!
mindlube
 
Posts: 35
Joined: Mon Feb 18, 2013 10:30 pm

Re: you can teach an old dog new tricks! (Emacs user experience)

Postby grundprinzip on Fri Mar 15, 2013 10:10 am

Hey,

one addition to using sublemacspro: Basically you can use `ctrl+x 2` and `ctrl-x 3` to create window groups and `ctrl-x o` to navigate between them. This was a nice patch that was provided by dustym on github. If you feel you're missing some features from Emacs, just drop me a line and I can see what to do about this.

Thanks for using sublemacspro.

Martin
grundprinzip
 
Posts: 8
Joined: Wed Feb 20, 2013 7:47 pm

Re: you can teach an old dog new tricks! (Emacs user experience)

Postby mindlube on Sat Mar 16, 2013 11:53 pm

Thanks for the tip Martin! I haven't really figured out how to use window groups yet. :?
mindlube
 
Posts: 35
Joined: Mon Feb 18, 2013 10:30 pm

Re: you can teach an old dog new tricks! (Emacs user experience)

Postby psc on Tue Mar 19, 2013 9:55 am

awsome. I had one "hop" more to sublime. I used komodo inbetween, switching from emacs.
lets get this thread alive:

when in search panel i added this key bindings to leave the panel on navigation commands

Code: Select all
  // close search when navigation commands
  { "keys": ["ctrl+a"], "command": "hide_panel", "context":
    [
      { "key": "panel_visible", "operator": "equal", "operand": true }
    ]
  },
  { "keys": ["ctrl+e"], "command": "hide_panel", "context":
    [
      { "key": "panel_visible", "operator": "equal", "operand": true }
    ]
  },


unfortunately that closes the console as well because it is not determinable if the panel_visible is a search panel.
panel_visible does only return true (in my oppinion this could return the name of the current visible panel)

i added
Code: Select all
{ "keys": ["alt+period", "enter"], "command": "goto_python_definition"},

to have "jump to definition" on C-. RET
psc
 
Posts: 2
Joined: Tue Mar 19, 2013 9:48 am


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 17 guests