adding new configs back
This commit is contained in:
70
init.el
70
init.el
@@ -8,8 +8,7 @@
|
||||
|
||||
(setq visible-bell t) ;; visual indicator instead of noise on bells
|
||||
|
||||
;;line numbers - relative
|
||||
(setq display-line-numbers-type 'relative)
|
||||
;;line numbers - standard
|
||||
(global-display-line-numbers-mode)
|
||||
|
||||
;;disable file backups
|
||||
@@ -107,70 +106,6 @@
|
||||
;; Make ESC quit prompts
|
||||
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
|
||||
|
||||
(use-package general
|
||||
:config
|
||||
(general-create-definer rh/leader-keys
|
||||
:keymaps '(normal insert visual emacs)
|
||||
:prefix "SPC"
|
||||
:global-prefix "C-SPC")
|
||||
|
||||
(rh/leader-keys
|
||||
"t" '(:ignore t :which-key "toggles")
|
||||
"tt" '(consult-theme :which-key "choose theme")
|
||||
|
||||
"f" '(:ignore t :which-key "files")
|
||||
"ff" '(find-file :which-key "find file")
|
||||
"fr" '(consult-recent-file :which-key "recent files")
|
||||
"fb" '(consult-buffer :which-key "switch buffer")
|
||||
|
||||
"o" '(:ignore t :which-key "org")
|
||||
"oa" '(org-agenda :which-key "agenda")
|
||||
"oc" '(org-capture :which-key "capture")
|
||||
"ol" '(org-store-link :which-key "store link")
|
||||
"oi" '(org-insert-link :which-key "insert link")
|
||||
"ot" '(org-todo :which-key "cycle todo")
|
||||
"os" '(org-schedule :which-key "schedule")
|
||||
"od" '(org-deadline :which-key "deadline")
|
||||
"oT" '(org-time-stamp :which-key "timestamp")
|
||||
"op" '(org-priority :which-key "priority")
|
||||
"ox" '(org-toggle-checkbox :which-key "toggle checkbox")
|
||||
"o-" '(org-ctrl-c-minus :which-key "insert item/cycle list type")
|
||||
"or" '(org-refile :which-key "refile")))
|
||||
|
||||
(use-package evil
|
||||
:init
|
||||
(setq evil-want-integration t)
|
||||
(setq evil-want-keybinding nil)
|
||||
(setq evil-want-C-u-scroll t)
|
||||
(setq evil-want-C-i-jump nil)
|
||||
:config
|
||||
(evil-mode 1)
|
||||
(define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state)
|
||||
(define-key evil-insert-state-map (kbd "C-h") 'evil-delete-backward-char-and-join)
|
||||
|
||||
;; Use visual line motions even outside of visual-line-mode buffers
|
||||
(evil-global-set-key 'motion "j" 'evil-next-visual-line)
|
||||
(evil-global-set-key 'motion "k" 'evil-previous-visual-line)
|
||||
|
||||
(evil-set-initial-state 'messages-buffer-mode 'normal)
|
||||
(evil-set-initial-state 'dashboard-mode 'normal))
|
||||
|
||||
(use-package evil-collection
|
||||
:after evil
|
||||
:config
|
||||
(evil-collection-init))
|
||||
|
||||
(use-package hydra)
|
||||
|
||||
(defhydra hydra-text-scale (:timeout 4)
|
||||
"scale text"
|
||||
("j" text-scale-increase "in")
|
||||
("k" text-scale-decrease "out")
|
||||
("f" nil "finished" :exit t))
|
||||
|
||||
(rh/leader-keys
|
||||
"ts" '(hydra-text-scale/body :which-key "scale text"))
|
||||
|
||||
;; Projectile Configuration ----------------------------------------------------
|
||||
|
||||
(use-package projectile
|
||||
@@ -228,5 +163,8 @@
|
||||
:config
|
||||
(setq org-agenda-files (directory-files-recursively "~/org" "\\.org$")))
|
||||
|
||||
;; Load standard Emacs-style keybindings
|
||||
(load (expand-file-name "org-bindings.el" user-emacs-directory))
|
||||
|
||||
;; Development Environment -----------------------------------------------------
|
||||
(load (expand-file-name "dev-settings.el" user-emacs-directory))
|
||||
|
||||
Reference in New Issue
Block a user