Hacker News new | ask | show | jobs
by lacker 6105 days ago
Most important:

  ;; Don't mix tabs and spaces
  (setq-default indent-tabs-mode nil) 
  
  ;; Use "newline-and-indent" when you hit the Enter key so
  ;; you don't need to keep using TAB to align each line.
  (global-set-key "\C-m" 'newline-and-indent)

  ;; Get rid of the <2> with duplicate file names
  (require 'uniquify)
  (setq uniquify-buffer-name-style 'post-forward-angle-brackets)
And then a whole bunch of autoload statements for different programming languages.
2 comments

  ;; Use "newline-and-indent" when you hit the Enter key so
  ;; you don't need to keep using TAB to align each line.
  (global-set-key "\C-m" 'newline-and-indent)
That's what C-j is for.
True, but I'm pretty sure mapping to C-m also maps it to the enter key.
uniquify is awesome!