aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-02-25 21:24:39 +0100
committerAdrian Kummerlaender2020-02-25 21:24:39 +0100
commit903a184d5f5eb2e3a6bdf5d1e685eee1a6f31235 (patch)
tree820b275b9328bfe2e496c7d1d432150b15a8a7e9 /gui
parent4c3fc870eb387a50e61b2d7b6317a785463cfc03 (diff)
downloadnixos_home-903a184d5f5eb2e3a6bdf5d1e685eee1a6f31235.tar
nixos_home-903a184d5f5eb2e3a6bdf5d1e685eee1a6f31235.tar.gz
nixos_home-903a184d5f5eb2e3a6bdf5d1e685eee1a6f31235.tar.bz2
nixos_home-903a184d5f5eb2e3a6bdf5d1e685eee1a6f31235.tar.lz
nixos_home-903a184d5f5eb2e3a6bdf5d1e685eee1a6f31235.tar.xz
nixos_home-903a184d5f5eb2e3a6bdf5d1e685eee1a6f31235.tar.zst
nixos_home-903a184d5f5eb2e3a6bdf5d1e685eee1a6f31235.zip
Add basic Emacs config
Diffstat (limited to 'gui')
-rw-r--r--gui/conf/init.el30
-rw-r--r--gui/emacs.nix2
2 files changed, 32 insertions, 0 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
new file mode 100644
index 0000000..fc16d5d
--- /dev/null
+++ b/gui/conf/init.el
@@ -0,0 +1,30 @@
+(setq backup-directory-alist `(("." . "~/.emacs.d/backup")))
+
+(require 'package)
+(package-initialize)
+(eval-when-compile (require 'use-package))
+
+(load-theme 'leuven)
+(set-frame-font "Iosevka 11" nil t)
+(menu-bar-mode -1)
+(toggle-scroll-bar -1)
+(tool-bar-mode -1)
+(global-visual-line-mode t)
+
+(use-package org)
+
+(setq org-agenda-files (list "~/org/org.org"))
+
+(use-package evil)
+(use-package evil-leader)
+(use-package evil-org)
+
+(global-evil-leader-mode)
+(evil-leader/set-leader ",")
+(evil-mode 1)
+
+(add-hook 'org-mode-hook 'evil-org-mode)
+(evil-org-set-key-theme '(navigation insert textobjects additional todo))
+
+(setq org-fontify-whole-heading-line t)
+(setq org-adapt-indentation nil)
diff --git a/gui/emacs.nix b/gui/emacs.nix
index 2dfdde7..e2773f0 100644
--- a/gui/emacs.nix
+++ b/gui/emacs.nix
@@ -15,4 +15,6 @@
org
]));
};
+
+ home.file.".emacs.d/init.el".source = ./conf/init.el;
}