Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

931 lines (802 sloc) 25.1 KB
(load (car (file-expand-wildcards "~/dotfiles/.emacs.d/elpa/benchmark-init-*/benchmark-init.el")))
(benchmark-init/activate)
(setq gc-cons-threshold 100000000
debug-on-error t)
(run-with-idle-timer
0 nil
(lambda ()
(setq gc-cons-threshold 1000000
debug-on-error nil)
(message "gc-cons-threshold restored to %S"
gc-cons-threshold)))
;;; Package Management
;; use order C-M-S-s-c
(require 'package)
;; Add MELPA before initialization
(add-to-list
'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
;; Bootstrap `use-package'
(unless (require 'use-package nil t)
(package-refresh-contents)
(package-install 'use-package))
(use-package package
:config
(setq package-archive-priorities
'(("gnu" . 0)
("melpa" . 10)))
:bind ("s-p" . list-packages))
;;; General Setup
(setq user-mail-address "code@seanallred.com"
*-devlog-major-mode #'markdown-mode
*-devlog-ext ".md"
browse-url-browser-function '(("." . browse-url-default-browser))
use-dialog-box nil
load-prefer-newer t
ns-use-thin-smoothing t
inhibit-startup-screen t)
(prefer-coding-system 'utf-8)
(load (expand-file-name "my-functions.el" user-emacs-directory))
(require 'bind-key)
(let ((default-directory user-emacs-directory))
(when *-windows-p
(load (expand-file-name "windows.init.el")))
(if window-system
(load (expand-file-name "gui.init.el"))
(load (expand-file-name "tui.init.el"))))
(bind-keys ("C-S-j" . join-line)
("C-x C-f" . *-super-completing-find-file)
("C-c g" . helm-google-suggest)
("C-M-=" . *-upgrade-all-packages)
("C-x C-M-r" . *-eval-and-replace)
("C-c x" . *-copy-buffer-file-name-as-kill)
("C-x M-u" . capitalize-region)
("C-c L" . *-load-customizations)
("C-c e" . *-epic-files)
("s-n" . toggle-frame-fullscreen)
("C-x s-f" . *-find-favorite)
("M-o" . other-window))
(bind-keys :map isearch-mode-map
("C-SPC" . *-isearch-yank-thing-at-point))
(dolist (c '(scroll-left upcase-region downcase-region
narrow-to-region narrow-to-page))
(put c 'disabled nil))
(add-hook 'before-save-hook #'delete-trailing-whitespace)
(auto-fill-mode)
(column-number-mode 1)
;;; Packages
(use-package lumps-mode
:load-path "~/.emacs.d/my-packages")
;;(use-package gh :load-path "~/github/gh.el")
(use-package asm-mode
:config
(advice-add
'asm-mode :after
(lambda (&rest _)
(setq fill-prefix nil))))
(use-package auto-minor-mode
:disabled t
:load-path "my-packages/")
(use-package tempfile
;; @TODO: to be released on GitHub and published on MELPA
:load-path "~/github/vermiculus/tempfile.el"
:bind (("C-c t" . tempfile-find-temporary-file)
("C-c k" . tempfile-delete-this-buffer-and-file)))
(use-package m4-mode
:defer t
:config
(modify-syntax-entry ?# "@" m4-mode-syntax-table))
(use-package tex
:ensure auctex
:config
(add-to-list
'TeX-command-list
'("Arara"
"arara %s"
TeX-run-command
nil ; ask for confirmation
t ; active in all modes
:help "Run Arara"))
;;(defalias 'TeX-completing-read-multiple #'completing-read)
:bind (("C-c ?" . *-TeX-find-texdoc)
("C-c M-?" . *-TeX-find-kpathsea)))
(use-package apiwrap
:load-path "~/github/apiwrap.el")
(use-package expl3
:after tex
:if *-osx-p
:load-path "~/github/auctex/")
(use-package reftex
:after tex
:config
(setq reftex-plug-into-AUCTeX t))
(use-package latex
:after tex
:config
(add-to-list 'LaTeX-font-list
'(?\C-a "\\Algorithm{" "}"))
(dolist (e '("log" "nav" "out" "snm"))
(add-to-list 'completion-ignored-extensions e)))
(use-package god-mode
:bind (("<escape>" . god-local-mode)
:map god-local-mode-map
("[" . backward-page)
("]" . forward-page))
:config
(add-hook 'god-local-mode-hook
#'*-god-mode-update-cursor))
(use-package multiple-cursors
:defines (mc/keymap)
:bind (("C-<" . mc/mark-previous-like-this)
("C->" . mc/mark-next-like-this)
("C-M->" . mc/mark-all-like-this-dwim)
:map mc/keymap
("M-i" . mc/insert-numbers)
("C-v" . mc/cycle-forward))
:config
(require 'mc-cycle-cursors))
(use-package smex
:disabled t
:config
(smex-initialize)
:bind (("M-x" . smex)
("C-c M-x" . smex-major-mode-commands)))
(use-package yasnippet
:if window-system
:diminish yas-minor-mode
:commands yas-global-mode
:config
(add-hook 'typescript-mode-hook #'yas-minor-mode-on))
(use-package cc-mode
:bind (("C-c RET" . ff-find-related-file)
("C-c C-'" . compile)))
(use-package irony
:disabled t
;; Shell command: "xcode-select --install"
;; https://github.com/Sarcasm/irony-mode/issues/339
:config
(add-hook 'c++-mode-hook #'irony-mode)
(add-hook 'c-mode-hook #'irony-mode)
(add-hook 'objc-mode-hook #'irony-mode)
(add-hook 'irony-mode-hook #'irony-cdb-autosetup-compile-options)
(define-key irony-mode-map [remap completion-at-point] #'irony-completion-at-point-async)
(define-key irony-mode-map [remap complete-symbol] #'irony-completion-at-point-async))
(use-package company-irony
:disabled t
:after company
:config
(add-to-list 'company-backends #'company-irony))
(use-package ggtags
:disabled t
:after cc-mode
:if *-osx-p
:config
(add-hook 'c-mode-common-hook
(lambda ()
(when (derived-mode-p 'c-mode 'c++-mode)
(ggtags-mode 1)))))
(use-package company
:if window-system
:commands (company-mode company-mode-on)
:bind (:map company-active-map
("C-n" . company-select-next-or-abort)
("C-p" . company-select-previous-or-abort))
:bind (:map company-mode-map
("C-M-SPC" . company-complete))
:init
(mapc (lambda (s) (add-hook s #'company-mode-on))
'(prog-mode-hook
emacs-lisp-mode-hook
lisp-interaction-mode-hook
ielm-mode-hook
ruby-mode-hook
clojure-mode-hook
cider-repl-mode-hook))
:config
(setq company-tooltip-align-annotations t
company-minimum-prefix-length 2))
(use-package lsp-mode
:config
(require 'lsp-rust)
(setq lsp-rust-rls-command '("rustup" "run" "nightly" "rls")))
(use-package bbdb
:if window-system)
(use-package github-clone
:disabled t
:if window-system)
(use-package helm
:init (require 'helm-config)
:disabled t
(when (executable-find "curl")
(setq helm-google-suggest-use-curl-p t))
(setq helm-M-x-fuzzy-match t)
:bind
(("C-x C-a" . helm-command-prefix)
("C-x C-a C-o" . helm-org-in-buffer-headings)
("C-x C-a C-s" . helm-swoop)
("C-c g" . helm-google-suggest)
("C-x b" . helm-mini)
("M-y" . helm-show-kill-ring)
("C-x c C-o" . helm-org-in-buffer-headings)))
(use-package helm-ag
:bind (("<f12>" . helm-do-ag)
("s-f" . helm-do-ag))
:config
(when *-windows-p
(custom-set-variables
'(helm-ag-base-command "pt --nocolor --nogroup"))))
(use-package nose
:if window-system
:commands nose-mode)
(use-package org
:if window-system
:config
(require 'org-id)
(add-hook 'org-src-mode-hook #'hack-local-variables)
(require 'org-agenda)
(org-add-agenda-custom-command
'("d" "Agenda + Next Actions"
((agenda) (todo "NEXT"))))
(add-to-list 'org-file-apps
(cons (rx "." (or "doc" "xls" "ppt") (opt "x") string-end)
'default))
(setq org-src-fontify-natively t
org-id-link-to-org-use-id t
org-publish-project-alist '(("blog"
:base-directory "~/blog-twbs/org/"
:publishing-directory "~/blog-twbs/public-html/"
:publishing-function org-twbs-export-to-html
:with-sub-superscript nil))
org-hide-emphasis-markers t
org-agenda-include-diary t
org-export-async-debug nil)
(require 'ox-twbs)
:bind (("C-c c" . org-capture)
("C-c a" . org-agenda)
("C-c l" . org-store-link)
("M-<apps>" . *-org-agenda-next-items)
("M-n" . org-metadown)
("M-p" . org-metaup)
:map org-mode-map
([remap org-babel-goto-named-src-block]
. *-org-babel-goto-noweb-ref-at-point)))
(use-package org-projectile
:disabled t
:config
(mapc (lambda (todo) (add-to-list 'org-agenda-files todo))
(org-projectile:todo-files))
(add-to-list 'org-capture-templates
(org-projectile:project-todo-entry "p"))
:bind (("C-c p n" . org-projectile:capture-for-current-project)))
(use-package outorg
:if window-system
:config
:bind ("M-#" . outorg-edit-as-org))
(use-package outshine
:after outorg)
(use-package sly
:commands sly
:config
(setq inferior-lisp-program "sbcl"
;;slime-contribs '(slime-autodoc slime-quicklisp)
;;slime-autodoc-use-multiline-p t
))
(use-package undo-tree
:disabled t
:diminish undo-tree-mode)
(use-package erefactor
:if window-system
:bind (:map emacs-lisp-mode-map
("C-c C-d" . erefactor-map)
("C-c r" . erefactor-rename-symbol-in-buffer))
:config
(add-hook 'emacs-lisp-mode-hook #'erefactor-lazy-highlight-turn-on))
(use-package eldoc
:if window-system
:diminish eldoc-mode
:config
(mapc (lambda (s) (add-hook s #'eldoc-mode))
'(emacs-lisp-mode-hook
lisp-interaction-mode-hook
ielm-mode-hook
clojure-mode-hook
cider-repl-mode-hook)))
(use-package nameless
:if window-system
:config
(setq nameless-affect-indentation-and-filling nil)
(mapc (lambda (s) (add-hook s #'nameless-mode))
'(emacs-lisp-mode-hook
lisp-interaction-mode-hook
ielm-mode-hook
clojure-mode-hook
cider-repl-mode-hook))
:bind (:map emacs-lisp-mode-map
("_" . nameless-insert-name-or-self-insert)))
(use-package paredit
:diminish paredit-mode
:config
(mapc (lambda (s) (add-hook s #'paredit-mode))
'(emacs-lisp-mode-hook
lisp-interaction-mode-hook
lisp-mode-hook
ielm-mode-hook
cask-mode-hook
clojure-mode-hook
sly-mode-hook
cider-repl-mode-hook)))
(use-package cider
:if window-system
:bind (:map cider-mode-map
("C-c C-c" . *-cider-connect)
:map cider-inspector-mode-map
("i" . cider-inspector-operate-on-point)
("m" . cider-inspector-operate-on-point)
("/" . cider-inspector-pop)
("'" . cider-inspector-pop)
("n" . cider-inspector-next-inspectable-object)
("p" . cider-inspector-previous-inspectable-object)))
(use-package aggressive-indent
:config
(dolist (m '(c-mode sh-mode comint-mode rust-mode text-mode))
(push m aggressive-indent-excluded-modes))
(aggressive-indent-global-mode))
(use-package clj-refactor
:disabled t
:if window-system
:config
(setq cljr-suppress-middleware-warnings t)
(add-hook 'clojure-mode-hook
(lambda ()
(clj-refactor-mode 1)
(yas-minor-mode 1)
(cljr-add-keybindings-with-prefix "C-c C-m"))))
(use-package lisp-mode
:config
(mapc (lambda (s) (add-hook s #'show-paren-mode))
'(emacs-lisp-mode-hook
lisp-interaction-mode-hook))
(font-lock-add-keywords
'emacs-lisp-mode
'(("\\_<\\.\\(?:\\sw\\|\\s_\\)+\\_>" 0
font-lock-builtin-face)))
:bind (("C-x C-e" . pp-eval-last-sexp)
("C-x M-e" . pp-macroexpand-last-sexp)))
(use-package ielm
:if window-system
:config
(add-hook 'ielm-mode-hook #'show-paren-mode))
(use-package twittering-mode
:if window-system
:commands (twit twittering-mode twittering-update-status)
:config
(setq twittering-use-master-password t)
:bind (("C-c m" . *-twittering-update-status-from-minibuffer)
("C-c n" . twittering-update-status-interactive)))
(use-package yaml-mode
:defer t)
(use-package markdown-mode
:defer t
:config
(add-hook 'markdown-mode-hook #'*-set-replacements)
(add-hook 'markdown-mode-hook #'visual-fill-column-mode)
(add-hook 'markdown-mode-hook #'visual-line-mode)
(bind-key "M-M" #'*-insert-post-url markdown-mode-map))
(use-package fish-mode
:mode "\\.fish\\'")
(use-package ido
:disabled t
:config
(ido-mode t)
(setq ido-everywhere t))
(use-package flx-ido
:disabled t
:after ido
:config
(flx-ido-mode t))
(use-package coffee-mode
:disabled t
:mode "\\.coffee\\'")
(use-package csv-mode
:mode "\\.csv\\'")
(use-package dired
:config
(setq dired-listing-switches "-alh")
(bind-keys :map dired-mode-map
("/" . dired-up-directory)
("z" . *-dired-zip-files))
(when *-osx-p
(customize-set-value
'insert-directory-program "gls"
"Use ls from core-utils")))
(use-package dired-aux
:after dired
:config
(add-to-list 'dired-compress-file-suffixes
'("\\.zip\\'" ".zip" "unzip")))
(use-package bf-mode
:after dired)
(use-package ibuffer
:bind ("C-x C-b" . ibuffer))
(use-package projectile
:if window-system
:commands (projectile-project-p)
:bind ("C-c p" . projectile-command-map)
:diminish projectile-mode
:config
(setq projectile-completion-system 'ivy)
(when *-osx-p
(setq projectile-generic-command
(concat "g" projectile-generic-command)))
(projectile-global-mode))
(use-package helm-projectile
:disabled t
:config
(setq projectile-completion-system 'helm)
(bind-key "s-f" #'helm-projectile-ag projectile-command-map))
(use-package ag
:commands (ag-regexp)
:config
(bind-key "s-f" #'helm-projectile-ag projectile-command-map))
(use-package hyde)
(use-package impatient-mode
:disabled t
:if window-system)
(use-package expand-region
:bind ("C-=" . er/expand-region))
(use-package speedbar
:if window-system
:bind ("C-c C-SPC" . speedbar-get-focus))
(use-package ace-jump-mode
:disabled t
:config
(bind-keys :prefix-map my:ace-jump-map
:prefix "C-c j"
("j" . ace-jump-mode)
("k" . ace-jump-char-mode)
("l" . ace-jump-line-mode))
(setq ace-jump-mode-move-keys
(loop for i from ?a to ?z collect i)))
(use-package key-chord
:after avy
:config
(key-chord-define-global ";o" #'avy-goto-word-1)
(key-chord-define-global ";'" #'avy-goto-word-0)
(key-chord-define-global ";k" #'avy-goto-char)
(key-chord-define-global ";l" #'avy-goto-line)
(key-chord-mode 1))
(use-package avy
:config
(setq avy-style 'at-full
avy-styles-alist nil)
(bind-keys :prefix-map my:avy-jump-map
:prefix "C-c C-'"
("C-'" . avy-goto-word-0)
("C-;" . avy-goto-char)
("C-k" . avy-goto-char-2)
("C-l" . avy-goto-line))
(bind-key "C-'" #'avy-isearch isearch-mode-map))
(use-package golden-ratio
:disabled t
:config (add-to-list 'golden-ratio-extra-commands 'aw--callback))
(use-package ruby-mode
;; Use M-x racr to use `rvm-activate-corresponding-ruby'
:disabled t
:if window-system
:defer t)
(use-package rvm
:after ruby-mode)
(use-package robe
:after ruby-mode)
(use-package projectile-rails
:after ruby-mode
:disabled t
:config
(add-hook 'projectile-mode-hook #'projectile-rails-on))
(use-package typescript-mode
:config
(add-hook 'typescript-mode-hook (lambda () (aggressive-indent-mode -1))))
(use-package tide
:commands (:setup-tide)
:init
(add-hook 'typescript-mode-hook #'*-setup-tide)
:config
(defun *-setup-tide ()
(tide-setup)
(flycheck-mode 1)
(setq-local flycheck-check-syntax-automatically '(save mode-enabled))
(eldoc-mode 1)
(tide-hl-identifier-mode 1)
(company-mode-on)))
(use-package vb6-mode
:disabled t
:if *-windows-p
:load-path "~/dotfiles/.emacs.d/my-packages/"
:config
(add-to-list 'auto-mode-alist `(,(rx "EpicSource/" (* not-newline) (or "frm" "ctl" "bas" "cls")) 'visual-basic-mode))
(setq visual-basic-mode-indent 2
visual-basic-ide-pathname "C:/Program Files (x86)/Microsoft Visual Studio/VB98/VB6.EXE"))
(use-package mumps-mode
:disabled t
:load-path "~/github/emacs-mumps/"
;; :load-path "~/dotfiles/.emacs.d/my-packages/"
)
(use-package org-epic
:if *-windows-p
:load-path "c:/users/sallred/git/org-epic/"
:bind (("C-c e" . org-epic:emc2:edit-from-org-task)
("C-c E" . org-epic:emc2:edit)
("C-c b" . org-epic:brainbow:open-course)
("C-c B" . org-epic:brainbow:open-course-by-id)))
(use-package epic-vb6
:if *-windows-p
:load-path "c:/Users/sallred/git/epic-vb6/")
(use-package caps-lock
:disabled t
:bind ("C-]" . caps-lock-mode))
(use-package xahk-mode
;; autohotkey
:if *-windows-p)
(use-package define-word
:bind ("M-'" . define-word-at-point))
(use-package evil
:disabled t
:config
(setq evil-symbol-word-search t)
:bind ("C-M-`" . evil-mode))
(use-package neotree
:bind ("s-d" . neotree)
:config
(setq neo-dont-be-alone t
neo-theme 'nerd)
(bind-keys :map neotree-mode-map
("u" . neotree-select-up-node)
;;("d" . *-neo-down-and-next)
("i" . neotree-enter)
("K" . neotree-delete-node)))
(use-package eshell
:bind ("s-s" . eshell))
(use-package erc
:config
(setq erc-autojoin-channels-alist
'(("localhost" "kat")))
:bind (("s-e" . *-erc-bitlbee)
:map erc-mode-map
("s-." . *-erc-send-ident)))
(use-package sx
:if *-osx-p
:load-path "~/github/vermiculus/sx.el/"
:config
(progn
(ignore-errors
(require 'sx-load))
(push '(".*\.stackexchange\.com" . sx-open-link)
browse-url-browser-function)
(bind-keys :prefix-map *-sx-map
:prefix "s-x"
("i" . sx-inbox)
("s" . sx-tab-all-questions))))
(use-package diminish
:ensure t)
(use-package ivy
:diminish ivy-mode
:config
(ivy-mode t)
(setq ivy-re-builders-alist
'((swiper . ivy--regex)
(t . ivy--regex-fuzzy))))
(use-package counsel
:diminish counsel-mode
:config
(counsel-mode 1)
(setq counsel-find-file-ignore-regexp
(rx (or (: bos (* any) "~" eos)
(: bos (* any) "." (or "tiff" "png") eos))))
(ivy-add-actions #'counsel-find-file
'(("m" magit-status-internal "magit")))
:bind (("C-x C-r" . counsel-recentf)))
(use-package hydra :ensure t)
(use-package lispy :ensure t)
(use-package exec-path-from-shell
:if window-system
:ensure t
:config
(dolist (v '("GOPATH" "RUST_SRC_PATH" "EMACS_VERSION"))
(add-to-list 'exec-path-from-shell-variables v))
(setq exec-path-from-shell-check-startup-files nil)
(when *-windows-p
(setq exec-path (add-to-list 'exec-path "C:/Program Files (x86)/Git/bin"))
(setenv "PATH" (concat "C:\\Program Files (x86)\\Git\\bin;" (getenv "PATH"))))
(when (memq window-system '(mac ns))
(exec-path-from-shell-initialize)))
(use-package counsel-projectile
:after counsel
:bind ("C-x C-p" . counsel-projectile-switch-project))
(use-package counsel-osx-app
:after counsel
:bind ("s-o" . counsel-osx-app))
(use-package swiper
:ensure t
:init
(require 'ivy)
:bind (("C-s" . swiper)
("C-#" . *-swiper-thing-at-point)))
(use-package help
:config
(bind-keys :map help-mode-map
("[" . help-go-back)
("]" . help-go-forward)))
(use-package helpful
:bind
(("C-h f" . helpful-callable)
("C-h v" . helpful-variable)
("C-h k" . helpful-key)
("C-c C-d" . helpful-at-point)
("C-h F" . helpful-function)
("C-h C" . helpful-command)))
(use-package go-mode)
(use-package company-go
:after go-mode company
:commands company-go
:config
(add-to-list 'company-backends #'company-go))
(use-package ediff
:config
(setq ediff-window-setup-function 'ediff-setup-windows-plain))
(use-package auto-compile
:config
(auto-compile-on-load-mode)
(auto-compile-on-save-mode))
(use-package magit
:config
(magit-define-popup-option 'magit-rebase-popup
?S "Sign using gpg" "--gpg-sign=" #'magit-read-gpg-secret-key)
(setq magit-last-seen-setup-instructions "1.4.0"
magit-git-executable "~/bin/chatty-git")
(when *-windows-p
(setq magit-git-executable "git.exe")
(add-to-list 'exec-path "C:/cygwin64/bin"))
(dolist (d '("/Users/sean/github/magithub"
"/Users/sean/github/magit"
"/Users/sean/github/emacs-libgit2"
"/Users/sean/github/ghub"
"/Users/sean/github/ghub+"
"/Users/sean/github/apiwrap.el"
"/Users/sean/github/vermiculus/sx.el"
"/Users/sean/github/emake.el"
"/Users/sean/github/random-git/emacs"))
(add-to-list 'magit-repository-directories d))
(setq magit-repolist-columns
'(("Name" 25 magit-repolist-column-ident nil)
("Version" 25 magit-repolist-column-version nil)
("U⊄L" 3 magit-repolist-column-unpulled-from-upstream
(:right-align t))
("L⊄U" 3 magit-repolist-column-unpushed-to-upstream
(:right-align t))
("PRs" 5 magithub-repolist-column-pull-request
(:right-align t))
("Iss" 5 magithub-repolist-column-issue
(:right-align t))
("Path" 20 magit-repolist-column-path))
magit-status-show-hashes-in-headers t)
(add-hook 'git-commit-mode-hook #'flyspell-mode)
:bind (("M-m" . magit-status)
("s-r" . magit-list-repositories))
:bind (:map magit-mode-map
("[" . magit-section-backward-sibling)
("]" . magit-section-forward-sibling)
("=" . magit-section-up)
("M-u" . magit-section-up)))
(use-package ghub+ :load-path "~/github/ghub+")
(add-to-list 'safe-local-variable-values
'(magithub-issue-issue-filter-functions . (my:issue-filter-out-enhancements)))
(use-package magithub
:load-path "~/github/magithub"
:defer t
:init
(defun my:issue-filter-out-enhancements (issue)
(not (member "enhancement"
(let-alist issue
(ghubp-get-in-all '(name)
.labels)))))
(with-demoted-errors "Error loading autoloads: %s"
(load "~/github/magithub/magithub-autoloads" nil t))
(magithub-feature-autoinject t)
(setq magithub-debug-mode t)
:bind (("C-c D" . magithub-debug-section)
("C-c H" . magithub-dispatch-popup))
:config
(setq magithub-issue-sort-function
#'magithub-issue-sort-descending)
(setq magithub-repo-directories
'(("api.github.com:vermiculus/magithub" . "~/github/magithub/"))))
(bind-key
"s-."
(lambda () (interactive)
(setq magithub-cache t)
(find-file "~/github/magithub/magithub.el")
(eval-buffer)))
(use-package imenu
:bind (("C-c C-," . imenu)))
(use-package hi-lock
:bind (("C-x w ." . highlight-symbol-at-point)
("C-x w u" . unhighlight-regexp)))
(use-package css-mode
:config
(add-hook 'css-mode-hook #'rainbow-mode))
(use-package windmove
:bind (("S-<right>" . windmove-right)
("S-<left>" . windmove-left)
("S-<up>" . windmove-up)
("S-<down>" . windmove-down)))
(use-package rust-mode
:config
(add-hook 'rust-mode-hook (if nil #'racer-mode
#'lsp-rust-enable)))
(use-package cargo
:after rust-mode
:bind (:map rust-mode-map
("C-c C-c" . cargo-process-run)))
(use-package racer-mode
:after rust-mode
:after cargo
:bind (:map rust-mode-map
("TAB" . company-indent-or-complete-common))
:config
(add-hook 'racer-mode-hook #'eldoc-mode)
(add-hook 'racer-mode-hook #'company-mode-on))
(use-package omnisharp
:disabled t
:if (and window-system (executable-find "mono")))
;;; Themes
(use-package monokai-theme
:if window-system
:disabled t)
(use-package ample-theme
:if window-system
:init
(load-theme 'ample t t)
(load-theme 'ample-flat t t)
(load-theme 'ample-light t t)
(enable-theme 'ample)
:defer t
:ensure t
:config
(set-face-background 'region "#484040")
(set-face-foreground 'dired-ignored "#4F4F4F"))
(benchmark-init/deactivate)
(fset 'benchmarking
(lambda (&optional arg)
"Keyboard macro."
(interactive "p")
(kmacro-exec-ring-item
(quote
([18 19 91 return
5 134217826 67108896 134217734 23 16 5
134217826 41 43 backspace backspace 40
43 32 25 32 134217734 41 21 24 5 134217730
67108896 134217730 23 14 1 11 11]
0 "%d"))
arg)))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(safe-local-variable-values
(quote
((column-number-mode . t)
(user-mail-address . "code@seanallred.com")))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; Local Variables:
;; fill-column: 80
;; indent-tabs-mode: nil
;; End:
(put 'dired-find-alternate-file 'disabled nil)
(require 'vlf-setup)
You can’t perform that action at this time.