feat: add dashboard and enhance completion
- Add startup dashboard with recent files and bookmarks - Enhance corfu with icons and minibuffer transfer - Add avy-zap, markdown-mode, consult-dir - Optimize GC settings and editor config
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
|
||||
;; 自定义scratch
|
||||
(setq initial-scratch-message
|
||||
";; SCRATCH SCRATCH SCRATCH\n\n")
|
||||
"")
|
||||
|
||||
;; 开启server mode
|
||||
(server-start)
|
||||
@@ -68,6 +68,28 @@
|
||||
(add-hook 'emacs-lisp-mode-hook 'electric-pair-mode)
|
||||
(add-hook 'org-mode-hook 'electric-pair-mode)
|
||||
|
||||
;; short anwser
|
||||
(if (boundp 'use-short-answers)
|
||||
(setq use-short-answers t)
|
||||
(fset 'yes-or-no-p 'y-or-n-p))
|
||||
(setq-default major-mode 'text-mode
|
||||
fill-column 100
|
||||
tab-width 4
|
||||
indent-tabs-mode nil)
|
||||
|
||||
(setq visible-bell t
|
||||
inhibit-compacting-font-caches t ; Don’t compact font caches during GC
|
||||
delete-by-moving-to-trash t ; Deleting files go to OS's trash folder
|
||||
make-backup-files nil ; Forbide to make backup files
|
||||
auto-save-default nil ; Disable auto save
|
||||
|
||||
uniquify-buffer-name-style 'post-forward-angle-brackets ; Show path if names are same
|
||||
adaptive-fill-regexp "[ t]+|[ t]*([0-9]+.|*+)[ t]*"
|
||||
adaptive-fill-first-line-regexp "^* *$"
|
||||
sentence-end "\\([。!?]\\|……\\|[.?!][]\"')}]*\\($\\|[ \t]\\)\\)[ \t\n]*"
|
||||
sentence-end-double-space nil
|
||||
word-wrap-by-category t)
|
||||
|
||||
(provide 'init-startup)
|
||||
|
||||
;;; init-startup.el ends here
|
||||
|
||||
Reference in New Issue
Block a user