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
|
|
@ -24,6 +24,13 @@
|
|||
(require 'use-package))
|
||||
(setq use-package-always-ensure t)
|
||||
|
||||
;; use-package offers many syntax sugar.
|
||||
;; :bind -> bindkeys
|
||||
;; :config -> `(progn do sth)
|
||||
;; :init -> (progn do sth)
|
||||
;; :after -> (when (featurep 'package)do sth)
|
||||
;; :hook -> (add-hook 'some-hook #'some-mode)
|
||||
|
||||
;; This part initialse the GPG Keyring
|
||||
; Disable signature first
|
||||
(setq package-check-signature nil)
|
||||
|
|
@ -44,13 +51,21 @@
|
|||
|
||||
;; Dashboard
|
||||
(use-package dashboard
|
||||
; Open with :dashboard-open<CR>
|
||||
;; Open with :dashboard-open<CR>
|
||||
:after evil
|
||||
:bind (:map dashboard-mode-map
|
||||
;; Navigation
|
||||
("n" . dashboard-next-line)
|
||||
("e" . dashboard-previous-line)
|
||||
;; Buffer switching
|
||||
("H" . previous-buffer)
|
||||
("I" . next-buffer))
|
||||
:config
|
||||
(dashboard-setup-startup-hook)
|
||||
; Use Emacs mode to use number to navigate dashboard
|
||||
(evil-set-initial-state 'dashboard-mode 'emacs)
|
||||
(setq dashboard-center-content t)
|
||||
;; Use Emacs mode to use number to navigate dashboard
|
||||
)
|
||||
|
||||
;(use-package dashboard
|
||||
; :ensure t
|
||||
; :init
|
||||
|
|
@ -58,7 +73,6 @@
|
|||
; :config
|
||||
; (setq dashboard-banner-logo-title "EMACS")
|
||||
; (setq dashboard-startup-banner 'official)
|
||||
; (setq dashboard-center-content t)
|
||||
; (setq dashboard-items '((recents . 5)
|
||||
; (bookmark . 5))))
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue