nixos/config/emacs/init.el
2023-09-04 15:56:05 +00:00

76 lines
1.7 KiB
EmacsLisp

;; UI/UX
(setq inhibit-startup-message t)
;; make it look like neovim a little
(scroll-bar-mode -1)
(tool-bar-mode -1)
(tooltip-mode -1)
(set-fringe-mode 10)
(menu-bar-mode -1)
;; Bell
(setq visible-bell t)
;; Font
(set-face-attribute `default nil :font "JetBrains Mono" :height 175)
(load-theme 'wombat)
;; Keymaps
;; Make ESC quit prompts
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
;; Package related stuqff
(require `package)
(setq package-archives `(("mepla" . "https://melpa.org/packages/")
("org" . "https://orgemode.org/elpa/")
("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
;; Init package for non-linux
(unless (package-installed-p `use-package)
(package-install `use-package))
(require 'use-package)
(setq use-package-always-ensure t)
;; for showing commands
(use-package command-log-mode)
;; better search
(use-package swiper)
;; better commands
(use-package counsel)
;; autocompletion on commands (?)
(use-package ivy
:diminish
:bind (("C-s" . swiper)
:map ivy-minibuffer-map
("TAB" . ivy-alt-done)
("C-l" . ivy-alt-done)
("C-j" . ivy-next-line)
("C-k" . ivy-previous-line)
:map ivy-switch-buffer-map
("C-k" . ivy-previous-line)
("C-l" . ivy-done)
("C-d" . ivy-switch-buffer-kill)
:map ivy-reverse-i-search-map
("C-k" . ivy-previous-line)
("C-d" . ivy-reverse-i-search-kill))
:demand
:config
(ivy-mode 1))
;; better statusbar
(use-package doom-modeline
:ensure t
:init (doom-modeline-mode 1))
:custom ((doom-modeline-height 15))
;; continue configuring from here
;; https://youtu.be/74zOY-vgkyw?t=3125