Skip to content

Instantly share code, notes, and snippets.

@soulawaker
soulawaker / soulawaker|adjust-org-table-font.el
Last active March 29, 2024 15:42
한글 and english font adjustment for org table, line spacing and line wrapping.
;; 한글 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
@soulawaker
soulawaker / persp-nov.el
Last active September 18, 2019 16:10
Make the persp-mode save|restore nov.el EPUB buffer. Tested in my spacemacs.
(with-eval-after-load "persp-mode"
(with-eval-after-load "nov"
(add-hook 'persp-save-buffer-functions
'(lambda (b)
(when (eq 'nov-mode (buffer-local-value 'major-mode b))
`(def-nov-buffer ,(buffer-name b)
,(buffer-local-value 'nov-file-name b)
,(buffer-local-value 'major-mode b)))))
(add-hook 'persp-load-buffer-functions
@soulawaker
soulawaker / Android Studio .gitignore
Last active September 18, 2015 06:51 — forked from iainconnor/Android Studio .gitignore
A .gitignore for use in Android Studio
# Built application files
/*/build/
# Crashlytics configuations
com_crashlytics_export_strings.xml
# Local configuration file (sdk path, etc)
local.properties
# Gradle generated files