about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-07-08 17:39:48 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-07-08 17:39:48 +0200
commita3cb5cdb5e9401a21d81ff92786272f5a19babc8 (patch)
tree3418858ae32fa04c2e22c2fbbe28e1c79f6c6604 /dotfiles
parentUpdate (diff)
downloadnixos-config-a3cb5cdb5e9401a21d81ff92786272f5a19babc8.tar.gz
nixos-config-a3cb5cdb5e9401a21d81ff92786272f5a19babc8.tar.bz2
nixos-config-a3cb5cdb5e9401a21d81ff92786272f5a19babc8.zip
Emacs: Initial config
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.emacs61
1 files changed, 61 insertions, 0 deletions
diff --git a/dotfiles/.emacs b/dotfiles/.emacs
new file mode 100644
index 0000000..fe045ea
--- /dev/null
+++ b/dotfiles/.emacs
@@ -0,0 +1,61 @@
+(eval-when-compile
+  (require 'use-package))
+
+(use-package evil
+  :init
+  (setq evil-want-integration t) ;; This is optional since it's already set to t by default.
+  (setq evil-want-keybinding nil)
+  :config
+  (evil-mode 1))
+
+(use-package evil-collection
+  :after evil
+  :config
+  (evil-collection-init))
+
+(use-package doom-themes)
+(setq doom-themes-enable-bold t
+      doom-themes-enable-italic t)
+(load-theme 'doom-one t)
+
+(set-face-attribute 'default nil
+                    :font "Inconsolata LGC Nerd Font 11"
+                    :weight 'medium)
+
+(setq-default line-spacing 0.10)
+
+;; Needed for emacsclient or fonts will be smaller than expected
+(add-to-list 'default-frame-alist '(font . "Inconsolata LGC Nerd Font 11"))
+
+;; Disable toolbar, menubar and scrollbar
+(menu-bar-mode -1)
+(tool-bar-mode -1)
+(scroll-bar-mode -1)
+
+(use-package doom-modeline
+  :init (doom-modeline-mode 1))
+
+(global-display-line-numbers-mode)
+
+(global-visual-line-mode t)
+      
+(use-package dashboard
+  :init
+  (setq dashboard-banner-logo-title "Welcome to Emacs Dashboard")
+  (setq dashboard-center-content nil)
+  (setq dashboard-items '((recents  . 5)
+                        (bookmarks . 5)
+                        (agenda . 5)
+                        (registers . 5)))
+  (setq dashboard-set-navigator t)
+  :config
+  (dashboard-setup-startup-hook))
+
+  ;;(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*")))
+
+;;TODO, make it work with directories
+(setq initial-buffer-choice
+  (lambda ()
+    (if (buffer-file-name)
+      (current-buffer) ;; leave as-is
+      (get-buffer-create "*dashboard*"))))
\ No newline at end of file