Skip to content

Commit

Permalink
major-modes(org): inline image max-size (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
terlar authored Oct 20, 2023
1 parent 0daeb3c commit 7c7c230
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
21 changes: 15 additions & 6 deletions init.org
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
#+AUTHOR: Terje Larsen

* Overview
Terje's GNU Emacs configuration. It is not very well documented right now, but hopefully I
will have time to write down some more details later.
Terje's GNU Emacs configuration. It is not very well documented right now, but hopefully I will have time to write down some more details later.

This configuration is making a lot of assumptions as it is built as a package with
Nix. This means that all packages are expected to be on the =load-path= already and
compatibility is only guaranteed with the GNU Emacs version that is part of this
package. Currently GNU Emacs 29.0.50.
This configuration is making a lot of assumptions as it is built as a package with Nix. This means that all packages are expected to be on the =load-path= already and compatibility is only guaranteed with the GNU Emacs version that is part of this package. Currently GNU Emacs 29.0.50.

The rough details:
- themes :: [[file:lisp/readable-typo-theme.el][readable-typo-theme]] and [[file:lisp/readable-mono-theme.el][readable-mono-theme]]
Expand Down Expand Up @@ -4531,6 +4527,19 @@ Packages that I am currently testing or evaluating.
(use-package org-fragtog :ensure t)
#+end_src

** org-limit-image-size
#+begin_src emacs-lisp :tangle yes
(use-package org-limit-image-size
:ensure t
:after org
:commands
(org-limit-image-size-activate
org-limit-image-size-deactivate)
:init
(org-limit-image-size-activate)
(setq org-limit-image-size '(0.9 . 0.8)))
#+end_src

** org-roam
#+begin_src emacs-lisp :tangle yes
(use-package org-roam :ensure t)
Expand Down
17 changes: 17 additions & 0 deletions lock/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions lock/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,12 @@
repo = "org-fragtog";
type = "github";
};
org-limit-image-size = {
flake = false;
owner = "misohena";
repo = "org-inline-image-fix";
type = "github";
};
org-modern = {
flake = false;
owner = "minad";
Expand Down
3 changes: 3 additions & 0 deletions recipes/org-limit-image-size
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(org-limit-image-size :fetcher github
:repo "misohena/org-inline-image-fix"
:files ("org-limit-image-size.el"))

0 comments on commit 7c7c230

Please sign in to comment.