adding stuff to config finally
This commit is contained in:
85
init.el
85
init.el
@@ -0,0 +1,85 @@
|
||||
(setq inhibit-startup-message t) ;; turn off splash screen
|
||||
|
||||
(scroll-bar-mode -1) ;; disable scroll bar
|
||||
(tool-bar-mode -1) ;; disable toolbar
|
||||
(tooltip-mode -1) ;; disable tooltips
|
||||
(menu-bar-mode -1) ;; disable menu bar
|
||||
|
||||
(setq visible-bell t) ;; visual indicator instead of noise on bells
|
||||
|
||||
;;line numbers - relative
|
||||
(setq display-line-numbers-type 'relative)
|
||||
(global-display-line-numbers-mode)
|
||||
|
||||
;;set up package management
|
||||
(require 'package)
|
||||
|
||||
(setq package-archives '(("mepla" . "https://melpa.org/packages/")
|
||||
("org" . "https://orgmode.org/elpa")
|
||||
("elpa" . "https://elpa.gnu.org/packages/")))
|
||||
|
||||
(package-initialize)
|
||||
(unless package-archive-contents
|
||||
(package-refresh-contents))
|
||||
|
||||
(unless (package-installed-p 'use-package)
|
||||
(package-install 'use-package))
|
||||
|
||||
(require 'use-package)
|
||||
(setq use-package-always-ensure t)
|
||||
;;end package management set-up
|
||||
|
||||
;;theme
|
||||
(use-package gruvbox-theme
|
||||
:ensure t
|
||||
:config
|
||||
(load-theme 'gruvbox-dark-hard t))
|
||||
|
||||
;;completions
|
||||
(use-package vertico
|
||||
:ensure t
|
||||
:init
|
||||
(vertico-mode))
|
||||
|
||||
;;completion commands
|
||||
(use-package consult
|
||||
:ensure t
|
||||
:bind (("C-x b" . consult-buffer)
|
||||
("C-s" . consult-line)
|
||||
("M-y" . consult-yank-pop)))
|
||||
|
||||
;;fuzzy matching
|
||||
(use-package orderless
|
||||
:ensure t
|
||||
:config
|
||||
(setq completion-styles '(orderless basic)
|
||||
completion-category-defaults nil))
|
||||
|
||||
;;minibuffer annotations
|
||||
(use-package marginalia
|
||||
:ensure t
|
||||
:init
|
||||
(marginalia-mode))
|
||||
|
||||
;;actions on minibuffer candidates
|
||||
(use-package embark
|
||||
:ensure t
|
||||
:bind (("C-." . embark-act)
|
||||
("M-." . embark-dwim)))
|
||||
|
||||
(use-package embark-consult
|
||||
:ensure t)
|
||||
|
||||
;;search across entire projects
|
||||
(use-package projectile
|
||||
:ensure t
|
||||
:init
|
||||
(projectile-mode +1)
|
||||
:bind (:map projectile-mode-map
|
||||
("C-c p" . projectile-command-map))
|
||||
:config
|
||||
(setq projectile-project-search-path '("~/src/"))) ;;C-c p p will search here for projects if i wanna jump between things
|
||||
|
||||
(use-package consult-projectile
|
||||
:ensure t
|
||||
:bind (("C-c p h" . consult-projectile)))
|
||||
|
||||
Reference in New Issue
Block a user