mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(emacs): evil, appearance and edit
* evil: Text Object (l -> inner) and Evil-Surround * appearance: mode line (doom) and bufferline (built-in) * edit: vertico and marginalia
This commit is contained in:
parent
ffcc8fb768
commit
e6b1e1b595
8 changed files with 99 additions and 21 deletions
|
|
@ -4,7 +4,7 @@
|
|||
(require 'package)
|
||||
; Add sources
|
||||
;; (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
|
||||
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
||||
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
||||
("org" . "https://orgmode.org/elpa/")
|
||||
("gnu" . "https://elpa.gnu.org/packages/")))
|
||||
;; Initialise the package management system
|
||||
|
|
@ -15,14 +15,14 @@
|
|||
(package-refresh-contents))
|
||||
|
||||
;; Ensure use-package is installed
|
||||
(unless (package-installed-p 'use-package)
|
||||
(unless (package-installed-p 'use-package)
|
||||
; (package-refresh-contents) Move to above
|
||||
(package-install 'use-package))
|
||||
|
||||
;; Use `use-package` for plugin management
|
||||
(eval-when-compile
|
||||
(require 'use-package))
|
||||
(setq use-package-always-ensure t)
|
||||
(setq use-package-always-ensure t)
|
||||
|
||||
;; This part initialse the GPG Keyring
|
||||
; Disable signature first
|
||||
|
|
@ -33,16 +33,6 @@
|
|||
; Re-enable signature
|
||||
(setq package-check-signature 'allow-unsigned)
|
||||
|
||||
;; Company - Complete Anything
|
||||
(use-package company
|
||||
:ensure t
|
||||
:hook (after-init . global-company-mode) ; 在启动后自动启用 global-company-mode
|
||||
:bind (:map company-active-map ; TODO: Seems does not work
|
||||
("C-n" . company-select-next)
|
||||
("C-p" . company-select-previous))
|
||||
:config
|
||||
(setq company-minimum-prefix-length 1 ; 设置最短补全前缀
|
||||
company-idle-delay 0.2)) ; 设置补全延迟(秒)
|
||||
|
||||
;; Which Key - Prompt available commands
|
||||
(use-package which-key
|
||||
|
|
@ -74,5 +64,11 @@
|
|||
;
|
||||
|
||||
|
||||
(use-package wakatime-mode
|
||||
:ensure t
|
||||
:config
|
||||
(global-wakatime-mode))
|
||||
|
||||
|
||||
(provide 'init-package)
|
||||
;;; init-package.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue