Skip to content

Instantly share code, notes, and snippets.

@fenimore
Created December 4, 2017 21:00
Show Gist options
  • Save fenimore/c0e9db67e1b7f0e83b7c65b2156c1cbc to your computer and use it in GitHub Desktop.
Save fenimore/c0e9db67e1b7f0e83b7c65b2156c1cbc to your computer and use it in GitHub Desktop.
Emacs Config
;; Fix color console output
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
;; Anaconda mode?
(setq python-shell-interpreter "python")
;; Fuck highlihgtin current line
(global-hl-line-mode -1)
(add-hook 'before-save-hook 'whitespace-cleanup)
;; Slower scrolling:
(setq mouse-wheel-progressive-speed nil)
(setq mouse-wheel-scroll-amount '(2
((shift) . 1)))
; Show Git diff indicators on the left.
(setq git-gutter-fr+-side 'left-fringe)
;; Custom nav shortcuts
(global-set-key [(control ?x)(?n)] 'next-buffer)
(global-set-key [(control ?x)(?p)] 'previous-buffer)
(setq tide-format-options '(:IndentSize 2))
;; Which Function signature in modline
;; (which-function-mode 1)
;; (setq-default dotspacemacs-configuration-layers '(themes-megapack))
;; On start up, none of this scratch nonsense
(add-hook 'emacs-startup-hook
(lambda ()
(kill-buffer "*scratch*")
(kill-buffer "*Messages*")
))
(defun my-web-mode-hook ()
"Hooks for Web mode."
(setq web-mode-markup-indent-offset 2))
(add-hook 'web-mode-hook 'my-web-mode-hook)
(setq rcirc-server-alist
'(("irc.freenode.net" :port 6697 :encryption tls
:nick nevermore :user-name nevermore
:channels ("##feminism"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment