Last active
March 29, 2024 15:42
-
-
Save soulawaker/c8c0f9a75118ef01354f36fa9d579bfc to your computer and use it in GitHub Desktop.
한글 and english font adjustment for org table, line spacing and line wrapping.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 한글 and english font adjustment for org table, line spacing and line wrapping. | |
;; I'm using this in spacemacs. | |
(with-eval-after-load 'org | |
;; org-table 한글:English proportion 1:2 | |
;; Because font rescale apply entire emacs, choose another english font for org-table | |
;; Replace your favorite monospaced english font and adjust its height if needed | |
(set-face-attribute 'org-table nil :family "Roboto Mono" :height 105) ;; Apply a specific font on org-table only | |
(setq face-font-rescale-alist | |
'(("Roboto Mono" . 0.78571) ;; Find good ratio | |
("D2Coding ligature" . 1.1))) ;; Replace your favorite Monospaced 한글 font and find good ratio | |
(defun soulawaker|line-spacing () | |
(interactive) | |
(setq line-spacing 0.2)) ;; May want to adjust | |
(add-hook 'org-mode-hook 'soulawaker|line-spacing) | |
(setq org-startup-truncated nil)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment