mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat(emacs): org mode basic qol improvements
* CJK zero-width space * Fonts for CJK characters * Paste images from clipboard (org-download) * Line-feed by default * Visual relative line mode number (instead of physical relative) * Treemacs: Sidebar file tree in Emacs
This commit is contained in:
parent
56a684d5ba
commit
87c237684b
7 changed files with 122 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
;;; init-file.el -- File Management configuration
|
||||
;;; init-file.el -- File Management configuration
|
||||
;;; First edit at 2025/01/29
|
||||
|
||||
;; Dired
|
||||
|
|
@ -20,5 +20,38 @@
|
|||
;; https://stackoverflow.com/q/1839313
|
||||
(setq dired-kill-when-opening-new-dired-buffer t)
|
||||
|
||||
;; Treemacs - Sidebar File Tree
|
||||
(use-package treemacs
|
||||
:ensure t
|
||||
:defer t
|
||||
:init
|
||||
(with-eval-after-load 'winum
|
||||
(define-key winum-keymap (kbd "M-0") #'treemacs-select-window))
|
||||
:bind
|
||||
(:map global-map
|
||||
("M-0" . treemacs-select-window)
|
||||
("C-x t 1" . treemacs-delete-other-windows)
|
||||
("C-x t t" . treemacs)
|
||||
("C-x t d" . treemacs-select-directory)
|
||||
("C-x t B" . treemacs-bookmark)
|
||||
("C-x t C-t" . treemacs-find-file)
|
||||
("C-x t M-t" . treemacs-find-tag)
|
||||
)
|
||||
)
|
||||
|
||||
(use-package treemacs-evil
|
||||
:after (treemacs evil)
|
||||
:ensure t
|
||||
:config
|
||||
;; Evil treemacs state bindings
|
||||
(define-key evil-treemacs-state-map (kbd "n") #'treemacs-next-line)
|
||||
(define-key evil-treemacs-state-map (kbd "e") #'treemacs-previous-line)
|
||||
(define-key evil-treemacs-state-map (kbd "N") #'treemacs-next-neighbour)
|
||||
(define-key evil-treemacs-state-map (kbd "E") #'treemacs-previous-neighbour)
|
||||
(define-key evil-treemacs-state-map (kbd "H") #'treemacs-toggle-show-dotfiles)
|
||||
(define-key evil-treemacs-state-map (kbd "I") #'treemacs-hide-gitignored-files-mode)
|
||||
;; Treemacs mode specific binding
|
||||
(evil-define-key 'treemacs treemacs-mode-map (kbd "i") #'treemacs-RET-action))
|
||||
|
||||
|
||||
(provide 'init-file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue