3 Komitmen a49c60c3c7 ... 7f57b83241

Pembuat SHA1 Pesan Tanggal
  Emilia L.K. Blåsten 7f57b83241 Use org-appear to hide emphasis, bold etc marks unless cursor on top 2 bulan lalu
  Emilia L.K. Blåsten aa91332588 Make garbage collection more useful 2 bulan lalu
  Emilia L.K. Blåsten aff640ed2d Add TODO about reducing org-babel load time 2 bulan lalu
1 mengubah file dengan 19 tambahan dan 1 penghapusan
  1. 19 1
      emacs

+ 19 - 1
emacs

@@ -46,7 +46,9 @@
 (unless (package-installed-p 'use-package)
   (package-install 'use-package))
 
-
+;; Make garbage collection less frequent
+;; then put to normal at the end of init
+(setq gc-cons-threshold (* 50 1000 1000))
 
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -566,6 +568,7 @@ Group number 1 should be the prefix itself."
   (alist-set "\\.pdf\\'" document-view 'org-file-apps)
   (alist-set "\\.djvu\\'" document-view 'org-file-apps)
   ;; C-c C-s RET inserts block. See ":exports both" for results.
+  ;; TODO: Section 5 in https://blog.d46.us/advanced-emacs-startup/
   (org-babel-do-load-languages
    'org-babel-load-languages
    '((calc . t)
@@ -597,5 +600,20 @@ Group number 1 should be the prefix itself."
   (set-face-attribute 'org-agenda-calendar-sexp nil
                       :inherit 'org-level-2)
   )
+(use-package org-appear
+  :ensure t
+  :commands (org-appear-mode)
+  :hook     (org-mode . org-appear-mode)
+  :config
+  (setq org-hide-emphasis-markers t)  ; Must be activated for org-appear to work
+  (setq org-appear-autoemphasis   t   ; Show bold, italics, verbatim, etc.
+        org-appear-autolinks      t   ; Show links
+	org-appear-autosubmarkers t)) ; Show sub- and superscripts
 ;;;;;;;;;;;;;;;;;;;;;;;;;;
 
+
+
+;; Make garbage collection more frequent now after initialization
+(setq gc-cons-threshold (* 2 1000 1000))
+
+