blob: 008de58aaeac901d799950c18b4388e00bcc99cf (
plain)
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
|
; Display line numbers
(global-display-line-numbers-mode)
; Disable tabs (only spaces)
(setq-default indent-tabs-mode nil)
; Highligh current line
(global-hl-line-mode)
; Mark trailing spaces
(setq-default show-trailing-whitespace t)
; Show whitespaces and EOL
;(global-whitespace-mode 1)
; Disable menubar and toolbar
(menu-bar-mode -1)
(tool-bar-mode -1)
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/")
t)
(package-initialize)
(load-theme 'gruvbox t)
(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.
'(package-selected-packages (quote (gruvbox-theme))))
(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.
)
(require 'slime-autoloads)
(setq inferior-lisp-program "sbcl")
(setq slime-contribs '(slime-fancy slime-quicklisp slime-asdf))
(defun browse-file-dir ()
"Open the current file's directory"
(interactive)
(if default-directory
(browse-url-of-file (expand-file-name default-directory))
(error "No `default directory` to open"))
)
|