Added ivy, projectile + org-roam.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
(require 'package)
|
||||
|
||||
;; fixing broken emacsclient config: emacsclient --eval "(load "~/.emacs")"
|
||||
|
||||
(add-to-list 'package-archives '("elpa" . "https://tromey.com/elpa/") t)
|
||||
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/") t)
|
||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
||||
@@ -43,7 +45,7 @@ Return a list of installed packages or nil for every skipped package."
|
||||
(or (file-exists-p package-user-dir)
|
||||
(package-refresh-contents))
|
||||
|
||||
(ensure-package-installed 'use-package 'smex 'magit 'centaur-tabs 'eglot 'telephone-line 'dashboard 'multiple-cursors 'flycheck 'which-key 'restart-emacs 'doom-themes 'rainbow-mode 'rainbow-delimiters 'neotree 'all-the-icons 'elpy 'rustic 'simpleclip 'messages-are-flowing 'hl-todo 'format-all 'auctex)
|
||||
(ensure-package-installed 'use-package 'ivy 'magit 'centaur-tabs 'eglot 'telephone-line 'dashboard 'multiple-cursors 'flycheck 'which-key 'restart-emacs 'doom-themes 'rainbow-mode 'rainbow-delimiters 'neotree 'all-the-icons 'elpy 'rustic 'simpleclip 'messages-are-flowing 'hl-todo 'format-all 'auctex 'counsel 'swiper 'projectile 'org-roam)
|
||||
|
||||
(use-package company)
|
||||
(add-hook 'after-init-hook 'global-company-mode)
|
||||
@@ -65,9 +67,6 @@ Return a list of installed packages or nil for every skipped package."
|
||||
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
|
||||
(add-hook 'css-mode-hook #'rainbow-mode)
|
||||
|
||||
(global-set-key (kbd "M-x") 'smex)
|
||||
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
|
||||
|
||||
(require 'telephone-line)
|
||||
(telephone-line-mode 1)
|
||||
(when (fboundp 'windmove-default-keybindings)
|
||||
@@ -77,15 +76,14 @@ Return a list of installed packages or nil for every skipped package."
|
||||
(which-key-mode)
|
||||
|
||||
(use-package dashboard
|
||||
:ensure t
|
||||
:config (dashboard-setup-startup-hook)
|
||||
:init
|
||||
(setq dashboard-set-footer nil
|
||||
dashboard-org-agenda-categories '("Tasks" "appointments")
|
||||
dashboard-center-content t))
|
||||
|
||||
(setq dashboard-set-heading-icons t)
|
||||
(setq dashboard-set-file-icons t)
|
||||
(setq dashboard-set-navigator t)
|
||||
dashboard-org-agenda-categories '("Tasks" "appointments")
|
||||
dashboard-center-content t
|
||||
dashboard-set-heading-icons t
|
||||
dashboard-set-file-icons t)
|
||||
:ensure t
|
||||
:config (dashboard-setup-startup-hook))
|
||||
|
||||
(require 'multiple-cursors)
|
||||
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
|
||||
@@ -102,6 +100,49 @@ Return a list of installed packages or nil for every skipped package."
|
||||
:init
|
||||
(advice-add 'python-mode :before 'elpy-enable))
|
||||
|
||||
(use-package ivy :ensure t
|
||||
:diminish ivy-mode
|
||||
:init (setq projectile-completion-system 'ivy)
|
||||
:config
|
||||
(ivy-mode 1)
|
||||
(setq ivy-height 13)
|
||||
(setq ivy-wrap t)
|
||||
(setq ivy-use-virtual-buffers t)
|
||||
(setq ivy-count-format "(%d/%d) "))
|
||||
|
||||
(use-package counsel
|
||||
:ensure t
|
||||
:bind*
|
||||
(("M-x" . counsel-M-x)
|
||||
("C-c d d" . counsel-descbinds)
|
||||
("C-c s s" . counsel-ag)
|
||||
("C-c s d" . counsel-ag-projectile)
|
||||
("C-x C-f" . counsel-find-file)
|
||||
("C-x r f" . counsel-recentf)
|
||||
("C-c g g" . counsel-git)
|
||||
("C-c g G" . counsel-git-grep)
|
||||
("C-x l" . counsel-locate)
|
||||
("C-c g s" . counsel-grep-or-swiper)
|
||||
("C-M-y" . counsel-yank-pop)
|
||||
("C-c C-r" . ivy-resume)
|
||||
("C-c i m" . counsel-imenu)
|
||||
("C-c i M" . ivy-imenu-anywhere)
|
||||
("C-c d s" . describe-symbol)))
|
||||
|
||||
(use-package swiper
|
||||
:bind*
|
||||
(("C-s" . swiper)))
|
||||
(setq search-default-mode #'char-fold-to-regexp)
|
||||
|
||||
|
||||
(use-package projectile
|
||||
:ensure t
|
||||
:init
|
||||
(projectile-mode +1)
|
||||
:bind (:map projectile-mode-map
|
||||
("s-p" . projectile-command-map)
|
||||
("C-c p" . projectile-command-map)))
|
||||
|
||||
(global-hl-todo-mode 1)
|
||||
|
||||
;; org settings
|
||||
|
||||
Reference in New Issue
Block a user