nixos/config/emacs/init.el

77 lines
1.7 KiB
EmacsLisp
Raw Normal View History

2023-09-04 18:36:14 +04:00
;; UI/UX
2023-09-04 13:36:15 +04:00
(setq inhibit-startup-message t)
2023-09-04 18:36:14 +04:00
;; make it look like neovim a little
2023-09-04 13:36:15 +04:00
(scroll-bar-mode -1)
(tool-bar-mode -1)
2023-09-04 19:56:05 +04:00
(tooltip-mode -1)
2023-09-04 13:36:15 +04:00
(set-fringe-mode 10)
(menu-bar-mode -1)
2023-09-04 18:36:14 +04:00
;; Bell
2023-09-04 13:36:15 +04:00
(setq visible-bell t)
2023-09-04 13:43:15 +04:00
2023-09-04 18:36:14 +04:00
;; Font
(set-face-attribute `default nil :font "JetBrains Mono" :height 175)
2023-09-04 13:54:56 +04:00
2023-09-04 18:36:14 +04:00
(load-theme 'wombat)
2023-09-04 17:05:22 +04:00
2023-09-04 18:36:14 +04:00
;; Keymaps
;; Make ESC quit prompts
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
2023-09-04 19:56:05 +04:00
;; Package related stuqff
2023-09-04 17:05:22 +04:00
(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)
2023-09-04 17:19:21 +04:00
(setq use-package-always-ensure t)
2023-09-04 19:56:05 +04:00
;; for showing commands
2023-09-04 18:11:22 +04:00
(use-package command-log-mode)
2023-09-04 18:36:14 +04:00
2023-09-04 19:56:05 +04:00
;; better search
(use-package swiper)
;; better commands
(use-package counsel)
;; autocompletion on commands (?)
2023-09-04 18:36:14 +04:00
(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)
2023-09-04 19:56:05 +04:00
("C-d" . ivy-reverse-i-search-kill))
:demand
2023-09-04 18:36:14 +04:00
:config
(ivy-mode 1))
2023-09-04 19:56:05 +04:00
;; 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