some .emacs changes
Getty Ritter
8 months ago
43 | 43 | (require 'package) |
44 | 44 | (package-initialize) |
45 | 45 | (add-to-list 'package-archives |
46 |
|
|
46 | '("melpa" . "https://melpa.org/packages/") t) | |
47 | 47 | (add-to-list 'package-archives |
48 |
|
|
48 | '("gelpa" . "http://gelpa.gdritter.com/") t) | |
49 | 49 | |
50 | 50 | (unless (package-installed-p 'use-package) |
51 | 51 | (package-refresh-contents) |
128 | 128 | (add-hook 'after-change-major-mode-hook 'gdritter/line-width-hook) |
129 | 129 | |
130 | 130 | (use-package dumb-jump |
131 | :bind (("M-g j" . dump-jump-go) | |
132 | ("M-g i" . dump-jump-go-prompt)) | |
133 | 131 | :config (setq dump-jump-selector 'helm) |
132 | :init (add-hook 'xref-backend-functions #'dumb-jump-xref-activate) | |
134 | 133 | :ensure t) |
135 | 134 | |
136 | 135 | (defconst gdritter/cc-style |
138 | 137 | |
139 | 138 | (c-add-style "gdritter/cc-style" gdritter/cc-style) |
140 | 139 | (setq c-default-style "gdritter/cc-style" c-basic-offset 4) |
140 | ||
141 | ||
141 | 142 | |
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) | |
142 | 152 | |
143 | 153 |