-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.el
137 lines (115 loc) · 4.79 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
'(vc-handled-backends '(Git));; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
;; don't use tabs
(setq-default indent-tabs-mode nil)
;; nice fonts in OS X
(setq mac-allow-anti-aliasing t)
;; interpret and use ansi color codes in shell output windows
(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
;(setq shell-file-name "/bin/bash --login")
;; use cmd as meta in Carbon Emacs
(setq mac-command-modifier 'meta)
(setq mac-option-modifier 'option)
;; hide all the chrome.
(setq inhibit-startup-message t)
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(setq ns-use-native-fullscreen nil)
(setq user-mail-address "[email protected]")
(setq user-full-name "Federico Builes")
;; personal preferences
(mouse-wheel-mode t)
(line-number-mode 1)
(column-number-mode 1)
(global-font-lock-mode t)
(show-paren-mode 1)
(prefer-coding-system 'utf-8)
(setq case-fold-search t
display-time-day-and-date t
display-time-24hr-format t
search-highlight t
query-replace-highlight t
default-fill-column 100
c-tab-always-indent "other"
browse-url-browser-function 'browse-default-macosx-browser
make-backup-files nil
standard-indent 4
css-indent-offset 2
transient-mark-mode t
visible-bell nil
show-paren-delay 0
ns-pop-up-frames nil)
;; hour/day in mode line
(display-time)
;; see if you're working with assholes.
(setq-default show-trailing-whitespace t)
(show-paren-mode t)
(setq show-paren-style 'expression)
;; use y/n instead of yes/no
(defalias 'yes-or-no-p 'y-or-n-p)
;; default window sizes
(set-frame-height (selected-frame) 37)
(set-frame-width (selected-frame) 120)
(set-frame-position (selected-frame) 50 40)
(setq split-height-threshold 50)
(setq split-width-threshold 100)
(server-start)
(add-to-list 'load-path "~/.emacs.d/lisp")
(add-to-list 'exec-path "/usr/local/bin")
;; add all the directories in .emacs.d/vendor/ to the path
(let* ((files (directory-files "~/.emacs.d/vendor" t "[^\.+]")))
(mapcar (lambda (d) (add-to-list 'load-path d)) files))
;; load everything else
(load "requires")
(load "bindings")
(load "personal")
(load "modes")
(load "hooks")
(load "rails")
(load "auto-insert")
(load "platform")
(use-package acme-theme
:config
(load-theme 'acme t))
(setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH")))
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("stable" . "https://stable.melpa.org/packages/")))
;; make codespaces a bit faster
(use-package codespaces
:ensure-system-package gh
:config (codespaces-setup))
(setq vc-handled-backends '(Git))
(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.
'(mumamo-background-chunk-major ((((class color) (min-colors 88) (background dark)) nil)))
'(mumamo-background-chunk-submode1 ((((class color) (min-colors 88) (background dark)) nil)))
'(mumamo-background-chunk-submode2 ((((class color) (min-colors 88) (background dark)) nil)))
'(mumamo-background-chunk-submode3 ((((class color) (min-colors 88) (background dark)) nil))))
;; (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.
;; '(haskell-program-name "ghci \"+.\"")
;; '(package-selected-packages
;; (quote
;; (json-mode neotree lsp-mode tern swift-mode fzf magit dash haskell-mode rust-mode dumb-jump gist dash-at-point minitest ag flx-ido))))
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)
(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.
'(custom-safe-themes
'("3770d0ae70172461ee0a02edcff71b7d480dc54066e8960d8de9367d12171efb" "18cd5a0173772cdaee5522b79c444acbc85f9a06055ec54bb91491173bc90aaa" default))
'(package-selected-packages
'(zencoding-mode chatgpt-shell acme-theme fzf elixir-mode plan9-theme yasnippet markdown-preview-mode company-go lsp-ui scala-mode sbt-mode zen-mode dockerfile-mode go-mode typescript-mode ag gist js2-mode projectile-rails deadgrep web-mode rust-mode rhtml-mode ivy tern swift-mode minitest magit lsp-mode json-mode dumb-jump auto-complete)))