* Behavior
** Make Unique Buffer Names
When two files of the same names are open, make the buffer names nicer.
#+BEGIN_SRC emacs-lisp
(require 'uniquify)
(setq uniquify-buffer-name-style 'reverse)
(setq uniquify-separator "/")
(setq uniquify-after-kill-buffer-p t)
(setq uniquify-ignore-buffers-re "^\\*")
#+END_SRC
** Prevent Shell Prompt from going to the bottom of buffer
#+BEGIN_SRC emacs-lisp
;; Prevent shell prompt from always going to the bottom of the window!
(remove-hook 'comint-output-filter-functions
'comint-postoutput-scroll-to-bottom)
#+END_SRC
If you think entering #+BEGIN_SRC emacs-lisp is tedious, put the following in your config:
*** Emacs Template for Source Code Blocks
I just type <se at the beginning of a line and it gives a source block
of Emacs lisp
#+BEGIN_SRC emacs-lisp
;; Make a template for emacs lisp.
(setq org-structure-template-alist
(cons '("se" "#+BEGIN_SRC emacs-lisp \n?\n#+END_SRC\n" "<src
lang=\"emacs-lisp\">\n?\n</src>")
org-structure-template-alist))
#+END_SRC
As the comment describes, now in any org file, at the beginning of a line, type "<se" and hit TAB, and it will expand it for you.