gdritter repos dotfiles / 9eeead6
some .emacs changes Getty Ritter 8 months ago
1 changed file(s) with 14 addition(s) and 4 deletion(s). Collapse all Expand all
4343 (require 'package)
4444 (package-initialize)
4545 (add-to-list 'package-archives
46 '("melpa" . "https://melpa.org/packages/") t)
46 '("melpa" . "https://melpa.org/packages/") t)
4747 (add-to-list 'package-archives
48 '("gelpa" . "http://gelpa.gdritter.com/") t)
48 '("gelpa" . "http://gelpa.gdritter.com/") t)
4949
5050 (unless (package-installed-p 'use-package)
5151 (package-refresh-contents)
128128 (add-hook 'after-change-major-mode-hook 'gdritter/line-width-hook)
129129
130130 (use-package dumb-jump
131 :bind (("M-g j" . dump-jump-go)
132 ("M-g i" . dump-jump-go-prompt))
133131 :config (setq dump-jump-selector 'helm)
132 :init (add-hook 'xref-backend-functions #'dumb-jump-xref-activate)
134133 :ensure t)
135134
136135 (defconst gdritter/cc-style
138137
139138 (c-add-style "gdritter/cc-style" gdritter/cc-style)
140139 (setq c-default-style "gdritter/cc-style" c-basic-offset 4)
140
141
141142
143
144 ;; some Ruby-specific setup
145 (use-package vagrant
146 :ensure t)
147 (add-to-list 'auto-mode-alist '("\\Vagrantfile\\'" . ruby-mode))
148 (add-to-list 'auto-mode-alist '("\\.rbi\\'" . ruby-mode))
149
150 (setq ruby-deep-indent-param nil)
151 (setq ruby-insert-encoding-magic-comment nil)
142152
143153