dotfiles / emacs.d / misc.el

Full commit
;;; Just a bunch of modes that I'm trying.
;;; These can sit in misc.el because
;;; they made not last long.

;; Load version control module
(require 'vc)
(setq ;; Always follow links if the file is under version control
 vc-follow-symlinks t

;; JIRA!
(require 'jira)
(setq jira-url "")

;; Desktop Module
;;(desktop-save-mode 1)

;; GraphViz mode:
(load-file "~/etc/emacs.d/graphviz-dot-mode.el")

;; Midnight Mode?  ClearBufferList?
(require 'midnight)

;; To install go-mode, add the following lines to your .emacs file:
;(add-to-list 'load-path "PATH CONTAINING go-mode-load.el" t)
(require 'go-mode-load)
;; After this, go-mode will be used for files ending in '.go'.

;; Undo-tree mode:
; This mode provides a visualization
; of the tree of undo state provided by emacs.
(require 'undo-tree)

;; You've split the window into two buffers?
;; But you wanted the new buffer on the left?
;; Try this!
(defun rwd-swap-buffers ()
  "Swap the current 2 buffers in their windows"
  (if (one-window-p)
      (error "Frame doesn't have two windows")
    (let* ((cw (selected-window))
           (nw (next-window cw))
           (cb (buffer-name (window-buffer cw)))
           (nb (buffer-name (window-buffer nw))))
      (switch-to-buffer nb)
      (select-window nw)
      (switch-to-buffer cb))))