summaryrefslogtreecommitdiff
path: root/init_blendoit.el
blob: 09ce22404daf6d8db6b64c3c2e7cd1890c63d670 (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
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))

(require 'evil-leader) ;; All hail our evil leader!
(global-evil-leader-mode) ;; The evil leader has gone global...
(load "~/.emacs.d/init_evil-leader-keys.el") ;; My custom evil-leader key bindings.
(require 'evil) ;; Let's follow in our leader's footsteps and become evil ourselves.
(evil-mode 1)

;; TODO
;; Change color of mode line upon entering and leaving evil-mode.
;;(setq original-background (face-attribute 'mode-line :background))
;;(setq normal-state-background "#FF4F00")
;;(if evil-mode
;;    (set-face-attribute 'mode-line nil :background normal-state-background)
;;  '(set-face-attribute 'mode-line nil :background original-background)
;;  )

;;(setq original-background (face-attribute 'mode-line :background))
;;(setq normal-state-background "#FF4F00")
;;(add-hook 'evil-normal-state-entry-hook
;;	  (lambda ()
;;	    (set-face-attribute 'mode-line nil :background normal-state-background)))
;;(add-hook 'evil-normal-state-exit-hook
;;	  (lambda ()
;;	    (set-face-attribute 'mode-line nil :background original-background)))

;; Interactively Do Things - add powerful features to common Emacs commands.
(setq ido-enable-flex-matching t)
(setq ido-everywhere t)
(ido-mode 1)

;; Zoom in/out of selected buffer
(global-set-key [C-S-mouse-4] 'text-scale-increase)
(global-set-key [C-S-mouse-5] 'text-scale-decrease)

;; Backup file locations
(setq backup-directory-alist
      `((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
      `((".*" ,temporary-file-directory t)))

;; Emacs GUI transparency
;;(set-frame-parameter (selected-frame) 'alpha '(<active> . <inactive>))
;;(set-frame-parameter (selected-frame) 'alpha <both>)
(set-frame-parameter (selected-frame) 'alpha '(85 . 50))
(add-to-list 'default-frame-alist '(alpha . (85 . 50)))

(load "~/.emacs.d/init_org-mode.el")
(pdf-tools-install)
Copyright 2019--2024 Marius PETER