Home Download Buy Blog Forum Support

Sublime Beginner coming from Emacs

Sublime Beginner coming from Emacs

Postby CuppoJava on Wed Jun 18, 2014 4:50 pm

Hello!
I just recently discovered Sublime, and was amazed by its speed. I am an old-time Emacs user and would like to slowly make the transition to Sublime. Ideally, I would like to learn the *sublime* alternative of doing things, and would like to avoid downloading an Emacs keymap. I was hoping those here that have successfully made the transition can help me. Here's some Emacs dances that I am having trouble learning in Sublime:

1) Navigating around Structured Data:
I write a lot of Lisp code, and am looking for replacements for the following:
Ctrl+Meta+f : Brings the cursor to the end of the next bracket group.
Ctrl+Meta+b : Brings the cursor to the beginning of the previous bracket group.
Ctrl+Space (possibly repeatedly) : Incrementally selects the next bracket groups.

2) Making complex selections without the Mark:
Consider the following text:
blah blah blah BEGIN blah blah blah END blah blah END blah blah blah
And I would like to select everything after the first BEGIN, and before the second END.

In Emacs the steps I follow is:
a. Search for BEGIN
b. Ctrl+Space to place the mark
c. Search for END
d. Search again to find second END

Thanks very much for your help. I am very impressed with the rest of Sublime and would like to switch over soon. The previous two patterns are the ones I find I miss the most, and is responsible for most of the current productivity gain I lose in Sublime versus in Emacs.

-Patrick
CuppoJava
 
Posts: 2
Joined: Wed Jun 18, 2014 4:37 pm

Re: Sublime Beginner coming from Emacs

Postby valerij_ on Wed Jun 18, 2014 5:45 pm

as to first point i dont know about this built-in (apart from ctrl-m shortcut which goes to matching bracket) but it sounds like it could be easily implemented as a plugin.

as to second you can use the regex enabled search in sublime and just search for `BEGIN.*END`
valerij_
 
Posts: 41
Joined: Fri Feb 14, 2014 5:59 pm

Re: Sublime Beginner coming from Emacs

Postby Clams on Fri Jun 20, 2014 2:46 pm

For you second point it is available: ctrl+k,ctrl+space place the mark and ctrl+k,ctrl+a select from cursor to the mark.

For this kind of stuff I find the plugin selectuntil very useful (available in package control)
Clams
 
Posts: 49
Joined: Fri Dec 30, 2011 7:44 am

Re: Sublime Beginner coming from Emacs

Postby CuppoJava on Sat Jun 21, 2014 11:13 pm

Hi Clams.
Thanks for the tip! I couldn't quite get it to work however. I have tried combinations of command, and ctrl. I'm using Sublime 2. Is this a feature of Sublime 3?
-Patrick
CuppoJava
 
Posts: 2
Joined: Wed Jun 18, 2014 4:37 pm

Re: Sublime Beginner coming from Emacs

Postby Clams on Mon Jun 23, 2014 7:01 am

Yes it might be ST3 only. If you have a license for ST2, you can use the ST3 beta (http://www.sublimetext.com/3) : the beta is misleading, the application is very stable.
Clams
 
Posts: 49
Joined: Fri Dec 30, 2011 7:44 am

Re: Sublime Beginner coming from Emacs

Postby ntenney on Tue Jun 24, 2014 7:32 pm

CuppoJava wrote:Hello!
I just recently discovered Sublime, and was amazed by its speed. I am an old-time Emacs user and would like to slowly make the transition to Sublime.

Thanks very much for your help. I am very impressed with the rest of Sublime and would like to switch over soon. The previous two patterns are the ones I find I miss the most, and is responsible for most of the current productivity gain I lose in Sublime versus in Emacs.



<puts on asbestos underwear>
<engage holy war>
Most of what you want do do can be accomplished easily enough if you use the vintageous plugin...

<end of joke>
ntenney
 
Posts: 66
Joined: Thu May 03, 2012 9:10 pm


Return to General Discussion

Who is online

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