You shouldn't set "trim_trailing_white_space_on_save": true unless you work alone, otherwise you're going to have random whitespace changes polluting your diffs.
Our coding guidelines at Stripe specify that whitespace is to be stripped. It works if everyone does it. On the occasion where whitespace does pollute the diff, GitHub has a convenient feature where you can append '?w=1' to any diff URL and whitespace changes will be omitted.
Setting up Sublime Text 2
111–120 of 141 posts
Re: Setting up Sublime Text 2
#112Earlier quoted context omitted.
Our coding guidelines at Stripe specify that whitespace is to be stripped. It works if everyone does it. On the occasion where whitespace does pollute the diff, GitHub has a convenient feature where you can append '?w=1' to any diff URL and whitespace changes will be omitted.
The number of pull requests I get where the diffs are completely unreadable because someone has this feature enabled is insane. On certain whitespace dependent languages (I'm looking at you Python) simply supressing the whitespace in the diff is not an option. What are the arguments for having whitespace removal as a coding standard?
Re: Setting up Sublime Text 2
#113I tried to like Sublime, I really did. Bought a license and used it for four months, before going back to Emacs. Sublime is nice, and easy to extend, but it only extends so far, while Emacs is infinitely extensible. You can practically live in Emacs[1]; some things I wanted to do in Emacs were hard to pull off, but I'm yet to find something it can't do. And it does so for years. Fashionable editors come and go, but E…
I love Emasc but it can't even do proper full screen. I really wish ST3 has more APIs in the Emacs spirit, but keeping it modern.
Re: Setting up Sublime Text 2
#114Earlier quoted context omitted.
I love Emasc but it can't even do proper full screen. I really wish ST3 has more APIs in the Emacs spirit, but keeping it modern.
(defun full-screen () "Indicate to the window manager that this frame should be full screen" (interactive) (x-send-client-message nil 0 nil "_NET_WM_STATE" 32 '(2 "_NET_WM_STATE_FULLSCREEN" 0)))
Re: Setting up Sublime Text 2
#115Get me block level (vit, cit ...) commands in ST2 and I will switch. They are done very well in Vim.
Re: Setting up Sublime Text 2
#116"The default website, icon, and theme are ugly to say the least" I can't be the only one who completely, utterly disagrees with this? I absolutely love the default theme and I think the icon looks great (much better than the alternative provided). That being said, I don't want to start a whole pointless discussion about taste here, it just kind of bothered me to read something like that in a blog post that talks abou…
Maybe some people really hate dark themes?
Re: Setting up Sublime Text 2
#117I do most of my editing on remote machines (both at work and at home) and haven't really been able to find a setup that works smoothly for this. Is everyone else developing everything on their local machines?
Re: Setting up Sublime Text 2
#118Re: Setting up Sublime Text 2
#119Re: Setting up Sublime Text 2
#120I tried to like Sublime, I really did. Bought a license and used it for four months, before going back to Emacs. Sublime is nice, and easy to extend, but it only extends so far, while Emacs is infinitely extensible. You can practically live in Emacs[1]; some things I wanted to do in Emacs were hard to pull off, but I'm yet to find something it can't do. And it does so for years. Fashionable editors come and go, but E…
What do you use to replace command-T in ST2 in Emacs? I recently picked up Emacs because I'm doing a clojure project (I can't get ST2 to work with nrepl) but I am having a hard time without the command-T fuzzy search. I have ido and find-file-in-project installed but neither of them seem to include directories in the fuzzy search. So if I search 'custcore' it won't match 'customer/core.clj'. If I instead search 'core…
It fills in the common project search and fuzzy filename search features(amount other things) and otherwise stays out of the way.