News for hackers. Stuff that matters.
Re:Zed: The Next Phase by scriptdevil on Wednesday April 02, 2014 @10:26AM (#7515699)
+1 on the search part. I think Sublime shines there. I cannot imagine spending $70 for an editor, but I would really like it if Emacs' code browsing was as smooth as sublime's @
Re:Zed: The Next Phase by codygman on Wednesday April 02, 2014 @10:42AM (#7515831)
Curious, how do you browse code in Sublime that you can't in emacs? I've seen coworkers using Sublime navigate code much the same as I do in emacs which is mostly just by using incremental search.
Re:Zed: The Next Phase by GeneralMayhem on Wednesday April 02, 2014 @12:57PM (#7516963)
I use Emacs at home and ST2 at work, and there are two things that ST2 does much, much better, both related to browsing large projects. One is scrolling - Emacs always wants to jump too many lines at a time, so it's very difficult to get lines of code exactly where you want them. The other is tree navigation - speedbar is more powerful, but you can't see multiple directories at once, which makes it hard to get a feel for the structure of the project as a whole.
Re:Zed: The Next Phase by npsimons on Wednesday April 02, 2014 @01:35PM (#7517340)
Many times, I find myself just 'C-s' or 'C-r' (searching) in Emacs to the piece of code I want, even if it's already visible, then doing 'C-l' to get it centered. And when org-mode is loaded, 'C-l' will cycle through making the current line vertically centered, top of buffer, and bottom of buffer. Not sure it's what you're looking for, but that's what I do, and I'm sure there's a way to customize how far emacs will scroll ('M-x customize-variable RET scroll TAB TAB' might be a good starting point for looking into this).
Re:Zed: The Next Phase by p4bl0 on Thursday April 03, 2014 @05:37AM (#7521789)
I also mostly navigate using C-s and C-r. Also, when you do that you can recursively use C-u C-SPACE which brings you back to where you were previously, this feature is really awesome, since most of the time you move in the code temporarily to adjust something somewhere else or even just to lookup something somewhere else.
Re:Zed: The Next Phase by Munksgaard on Wednesday April 02, 2014 @07:03PM (#7519676)
WRT scrolling, this is what I use in my .emacs:

    (setq scroll-margin 0
      scroll-conservatively 100000
      scroll-preserve-screen-position 1)
    (setq mouse-wheel-scroll-amount '(3 ((shift) . 1))) ;; one line at a time
    (setq mouse-wheel-progressive-speed nil) ;; don't accelerate scrolling
    (setq mouse-wheel-follow-mouse 't)
    ;; scroll window under mouse
    (setq scroll-step 1)
I dislike accelerated scrolling and use searches or registers for moving in big files, so this works quite nicely for me.
Re:Zed: The Next Phase by scriptdevil on Wednesday April 02, 2014 @01:56PM (#7517551)
I was specifically talking about C-r file@function_name All the parts are fuzzy. So if I wanted to go to function install_local_package in helper_functions.py, I can type C-r h_fu@ins_l_p (pretty much like we use ido)

While I use Emacs for all my editing, this would have been cool to have.