summaryrefslogtreecommitdiff
path: root/emacs-init.org
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs-init.org19
1 files changed, 15 insertions, 4 deletions
diff --git a/emacs-init.org b/emacs-init.org
index 65f7565..a6b15b9 100644
--- a/emacs-init.org
+++ b/emacs-init.org
@@ -2051,8 +2051,6 @@ Hansen's]] configs.
NEXT to INPROGRESS
- Align tags left :: Fixes problems with line breaking on small
window width.
-- Inline image width :: Resize images to 400px but respect width
- specifications in attribute lines.
#+begin_src emacs-lisp
(use-package org
@@ -2118,7 +2116,6 @@ Hansen's]] configs.
("IDLE" :foreground "magenta" :weight bold)))
(org-clock-in-switch-to-state 'bh/clock-in-to-inprogress)
(org-tags-column 0)
- (org-image-actual-width '(400))
<<org-custom>>
:config
(add-hook 'org-mode-hook 'turn-on-org-cdlatex)
@@ -2171,7 +2168,7 @@ Switch projects and subprojects from NEXT back to TODO"
(plantuml . t)
;; (hvm . t)
(ledger . t)))
- :hook (org-babel-after-execute . org-display-inline-images))
+ :hook <<ob-hooks>>)
#+end_src
#+BEGIN_SRC emacs-lisp
(use-package org-noter
@@ -2310,6 +2307,20 @@ Use imagemagick and standalone class for latex preview.
(use-package org-num
:delight)
#+end_src
+*** Inline images
+
+Resize inline images to 400px but respect width specifications in attribute lines.
+#+begin_src emacs-lisp :noweb-ref org-custom :tangle no
+(org-image-actual-width '(400))
+#+end_src
+Also display remote images by downloading them.
+#+begin_src emacs-lisp :noweb-ref org-custom :tangle no
+(org-display-remote-inline-images 'download)
+#+end_src
+
+#+begin_src emacs-lisp :noweb-ref ob-hooks :tangle no
+(org-babel-after-execute . org-display-inline-images)
+#+end_src
*** Refile
Use the full outline path so I can distinguish headlines with the same name & disable step-wise completion as I think from the refile target backwards, not from top-level downwards. Also include the current file's headings as a refile targets up to a deep level, all agenda files up to a small level and all open org files up to an even smaller level.