- Add gptel and gptel-magit packages for AI-powered Git commits and - chat Add org-roam and org-roam-ui for better note-taking and - knowledge management Add benchmark-init to measure startup - performance Add winum for window navigation with keybindings Add - vterm for better terminal emulation Configure exec-path-from-shell - to inherit shell environment Add org-roam.db to gitignore Set - use-short-answers for yes/no prompts Add org-todo-list keybinding - and update magit binding Configure org-agenda-files to include org - directory Remove commented eat package configuration
28 lines
948 B
EmacsLisp
28 lines
948 B
EmacsLisp
;; -*- lexical-binding: t -*-
|
|
(tool-bar-mode -1)
|
|
(scroll-bar-mode -1)
|
|
(display-line-numbers-mode 1)
|
|
(setq-default cursor-type 'bar)
|
|
(setq display-line-numbers 'relative)
|
|
(show-paren-mode t)
|
|
(recentf-mode 1)
|
|
(setq recentf-max-menu-item 10)
|
|
(setq make-backup-files nil)
|
|
(setq custom-file (expand-file-name "~/.emacs.d/custom.el"))
|
|
(load custom-file 'no-error 'no-message)
|
|
(setq use-short-answers t)
|
|
|
|
(global-set-key (kbd "s-a") 'mark-whole-buffer) ;;对应Windows上面的Ctrl-a 全选
|
|
(global-set-key (kbd "s-c") 'kill-ring-save) ;;对应Windows上面的Ctrl-c 复制
|
|
(global-set-key (kbd "s-s") 'save-buffer) ;; 对应Windows上面的Ctrl-s 保存
|
|
(global-set-key (kbd "s-v") 'yank) ;对应Windows上面的Ctrl-v 粘贴
|
|
(global-set-key (kbd "s-z") 'undo) ;对应Windows上面的Ctrol-z 撤销
|
|
|
|
(use-package exec-path-from-shell
|
|
:init
|
|
(exec-path-from-shell-initialize))
|
|
|
|
(global-set-key (kbd "C-x C-b") 'ibuffer)
|
|
|
|
(provide 'init-better-default)
|