summaryrefslogtreecommitdiff
path: root/.config/.emacs
blob: 407eb53bd8ce0b56390249243db151cb7e06ae3e (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
;; modes
(menu-bar-mode 0)
(tool-bar-mode 0)
(scroll-bar-mode 0)

;; functional
(set-default 'ring-bell-function 'ignore)
;; (setq c-basic-offset 8)
;; (setq indent-line-function 'insert-tab)

(defun hook-c ()
  (setq c-set-style "k&r")
  (setq indent-tabs-mode nil))
(add-hook 'c-mode-common-hook 'hook-c)

;; keybinds
(keymap-global-set "C-c c" 'compile)

;; visual
(setq inhibit-startup-screen t)
(set-default 'truncate-lines t)
(add-to-list 'default-frame-alist '(font . "Iosevka-16"))
(load-theme 'wombat 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 '(rfc-mode)))
(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.
 )