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)
|
|
|
|
|
|
|
|
(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")
|
2018-04-06 10:24:43 +02:00
|
|
|
'(ansi-color-names-vector
|
2018-09-15 17:37:03 +02:00
|
|
|
["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
|
2018-04-06 10:24:43 +02:00
|
|
|
'(column-number-mode t)
|
|
|
|
'(custom-enabled-themes (quote (tango)))
|
2018-09-15 17:37:03 +02:00
|
|
|
'(package-selected-packages (quote (magit geiser slime pdf-tools)))
|
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)
|
|
|
|
'(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.
|
2018-09-15 17:37:03 +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)
|
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-09-15 17:37:03 +02:00
|
|
|
(global-set-key (kbd "C-<return>") #'cua-rectangle-mark-mode)
|
|
|
|
|
|
|
|
(defun c-lineup-arglist-tabs-only (ignored)
|
|
|
|
"Line up argument lists by tabs, not spaces"
|
|
|
|
(let* ((anchor (c-langelem-pos c-syntactic-element))
|
|
|
|
(column (c-langelem-2nd-pos c-syntactic-element))
|
|
|
|
(offset (- (1+ column) anchor))
|
|
|
|
(steps (floor offset c-basic-offset)))
|
|
|
|
(* (max steps 1)
|
|
|
|
c-basic-offset)))
|
|
|
|
|
|
|
|
(add-hook 'c-mode-common-hook
|
|
|
|
(lambda ()
|
|
|
|
;; Add kernel style
|
|
|
|
(c-add-style
|
|
|
|
"linux-tabs-only"
|
|
|
|
'("linux" (c-offsets-alist
|
|
|
|
(arglist-cont-nonempty
|
|
|
|
c-lineup-gcc-asm-reg
|
|
|
|
c-lineup-arglist-tabs-only))))))
|
|
|
|
|
|
|
|
(add-hook 'c-mode-hook
|
|
|
|
(lambda ()
|
|
|
|
(setq indent-tabs-mode t)
|
|
|
|
(setq show-trailing-whitespace t)
|
|
|
|
(c-set-style "linux-tabs-only")))
|
2018-07-06 06:57:09 +02:00
|
|
|
|
2018-06-14 07:14:14 +02:00
|
|
|
(add-hook 'scheme-mode-hook
|
|
|
|
(lambda ()
|
|
|
|
(require 'geiser)
|
2018-07-06 06:57:09 +02:00
|
|
|
(setq-default geiser-active-implementations '(guile racket))
|
2018-06-14 07:14:14 +02:00
|
|
|
(setq-default geiser-repl-use-other-window nil)
|
|
|
|
(setq-default geiser-repl-query-on-kill-p nil)))
|
2018-05-23 16:48:23 +02:00
|
|
|
(add-hook 'python-mode-hook
|
2018-09-15 17:37:03 +02:00
|
|
|
(lambda () (setq comment-fill-column 72)))
|
2018-07-06 06:57:09 +02:00
|
|
|
; The SBCL binary and command-line arguments
|
|
|
|
(setq inferior-lisp-program "/usr/local/bin/sbcl --noinform")
|
2018-08-29 06:59:53 +02:00
|
|
|
(when window-system (set-frame-size (selected-frame) 80 25))
|