1
0
Fork 0
dotfiles/emacs/.emacs.d/init.el

78 lines
3.1 KiB
EmacsLisp
Raw Normal View History

2018-04-06 10:24:43 +02:00
;; 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.
2018-08-29 06:59:53 +02:00
(require 'package)
(add-to-list 'package-archives (cons "melpa" "https://melpa.org/packages/") t)
2018-04-06 10:24:43 +02:00
(package-initialize)
(pdf-tools-install)
2018-10-08 09:59:14 +02:00
(require 'slime)
(setq inferior-lisp-program "sbcl --noinform"
slime-contribs '(slime-fancy))
(require 'geiser)
(setq-default geiser-active-implementations '(guile racket))
(setq-default geiser-repl-use-other-window nil)
(setq-default geiser-repl-query-on-kill-p nil)
2018-04-06 10:24:43 +02:00
(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.
2018-09-15 17:37:03 +02:00
'(ac-auto-show-menu nil)
'(ac-auto-start nil)
'(ac-expand-on-auto-complete nil)
'(ac-trigger-key "M-RET")
2019-10-18 17:35:36 +02:00
'(ansi-color-names-vector
["#242424" "#e5786d" "#95e454" "#cae682"
"#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
2018-04-06 10:24:43 +02:00
'(column-number-mode t)
2019-10-31 14:41:43 +01:00
'(custom-enabled-themes (quote (tango)))
2018-10-18 06:28:50 +02:00
'(erc-nick "cnx")
2018-10-08 09:59:14 +02:00
'(package-selected-packages
(quote
2020-02-25 07:56:42 +01:00
(sane-term fireplace wordnut magit smart-tabs-mode yaml-mode glsl-mode
nix-mode perl6-mode lua-mode markdown-mode geiser slime auctex pdf-tools)))
2019-07-11 16:33:14 +02:00
'(safe-local-variable-values (quote ((Syntax . Common-Lisp))))
2018-04-06 10:24:43 +02:00
'(scroll-bar-mode nil)
'(show-paren-mode t)
2018-04-12 16:15:03 +02:00
'(tool-bar-mode nil)
2019-12-01 14:44:09 +01:00
'(vc-follow-symlinks t)
2018-04-12 16:15:03 +02:00
'(whitespace-style
2018-09-15 17:37:03 +02:00
(quote
(face trailing spaces newline space-mark newline-mark))))
2018-04-06 10:24:43 +02:00
(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.
2019-10-18 17:35:36 +02:00
'(default ((t (:family "Latin Modern Mono" :foundry "UKWN"
:slant normal :weight normal :height 120 :width normal))))
2018-04-12 16:15:03 +02:00
'(whitespace-space ((t (:foreground "gray")))))
2018-09-15 17:37:03 +02:00
(savehist-mode 1)
2018-04-22 17:26:18 +02:00
(setq-default inhibit-splash-screen t)
2019-02-04 17:36:22 +01:00
(find-file-noselect "/usr/share/dict/words")
2018-09-15 17:37:03 +02:00
(setq-default fill-column 79)
2018-04-22 17:26:18 +02:00
(add-hook 'prog-mode-hook 'ruler-mode)
2018-07-06 06:57:09 +02:00
(setq-default indent-tabs-mode nil)
(add-hook 'find-file-hook 'whitespace-mode)
2018-10-08 09:59:14 +02:00
(global-set-key (kbd "C-<tab>") (lambda () (interactive) (other-window -1)))
2018-09-15 17:37:03 +02:00
(global-set-key (kbd "C-<return>") #'cua-rectangle-mark-mode)
2018-10-08 09:59:14 +02:00
(smart-tabs-insinuate 'c)
2019-10-18 17:35:36 +02:00
(setq c-default-style '((c-mode-hook "linux")
(c++-mode-hook "gnu")
(java-mode-hook "gnu")))
2018-10-08 09:59:14 +02:00
(add-hook 'python-mode-hook (lambda () (setq comment-fill-column 72)))
2019-10-18 17:35:36 +02:00
(add-hook 'lua-mode-hook (lambda () (setq lua-indent-level 4)))
2019-12-01 14:44:09 +01:00
;(add-hook 'LaTeX-mode-hook 'prettify-symbols-mode)
2019-10-31 14:41:43 +01:00
(add-hook 'LaTeX-mode-hook
(lambda () (when (fboundp 'electric-indent-mode)
(electric-indent-mode -1))))
2018-10-08 09:59:14 +02:00
(add-hook 'pdf-tools-enabled-hook 'auto-revert-mode)
2018-07-06 06:57:09 +02:00
2019-12-06 14:11:00 +01:00
(add-to-list 'default-frame-alist '(width . 80))
(add-to-list 'default-frame-alist '(height . 24))