aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/init.el
blob: a807fa705aabf58930f3ad295a91e9b2507e7f0a (plain) (blame)
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
;; 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)

(put 'upcase-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.
 '(inhibit-startup-screen t))

(setq display-time-string-forms
      '((propertize (concat " " 24-hours ":" minutes " ")
                    )))

(column-number-mode)
(display-time-mode)

; (set-default-font "-misc-fixed-medium-r-normal--13-*-75-75-c-70-iso8859-1")
;; TODO set-default-font stopped working

; (blink-cursor-mode 0)
; (setq visible-bell t)
; (scroll-bar-mode 0)
; (tool-bar-mode 0)
; (menu-bar-mode 0)

;(custom-set-faces
;  '(default ((t (:background "#101064" :foreground "#FFFFFF"))))
;  '(fringe ((t (:background "#101064")))))

(set-face-foreground 'font-lock-comment-face "red")

(add-hook 'after-change-major-mode-hook (lambda() (electric-indent-mode -1)))
(add-hook 'c-mode-hook (lambda () (electric-indent-local-mode)))

(defvaralias 'c-basic-offset 'tab-width)
(global-set-key (kbd "DEL") 'backward-delete-char)
(setq c-backspace-function 'backward-delete-char)

(setq vc-follow-symlinks nil)
(setq vc-handled-backends nil)

(add-to-list 'auto-mode-alist '("/PKGBUILD$" . shell-script-mode))
(add-to-list 'auto-mode-alist '("/APKBUILD$" . shell-script-mode))
(setq auto-mode-alist (cons '("\.cl$" . c-mode) auto-mode-alist))