setq org-image-actual-width nil

This commit is contained in:
2020-03-01 13:57:50 +01:00
parent b000cab022
commit 5e5b9ddb9c

View File

@@ -319,44 +319,45 @@ I use a single file to dump all links I plan on viewing later.
This is the main configuration for the infamous org-mode. This is the main configuration for the infamous org-mode.
The most important parts are configuring key bindings to quickly access the files we have defined above. The most important parts are configuring key bindings to quickly access the files we have defined above.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org (use-package org
;; Always get this from the GNU archive. ;; Always get this from the GNU archive.
:pin gnu :pin gnu
:bind (("C-c o c" . org-capture) :bind (("C-c o c" . org-capture)
("C-c o l" . open-link-dump) ("C-c o l" . open-link-dump)
("C-c o s" . org-store-link) ("C-c o s" . org-store-link)
("C-c o a" . org-agenda) ("C-c o a" . org-agenda)
:map org-mode-map :map org-mode-map
("M-s-<return>" . org-insert-todo-heading) ("M-s-<return>" . org-insert-todo-heading)
("M-<return>" . org-insert-heading-respect-content) ("M-<return>" . org-insert-heading-respect-content)
("C-c c" . org-mode-insert-code) ("C-c c" . org-mode-insert-code)
("C-c a s" . org-emphasize) ("C-c a s" . org-emphasize)
("C-c a r" . org-ref) ("C-c a r" . org-ref)
("C-c a e" . outline-show-all) ("C-c a e" . outline-show-all)
("C-c a t" . unindent-by-four)) ("C-c a t" . unindent-by-four))
:hook ((org-mode . visual-line-mode) :hook ((org-mode . visual-line-mode)
(org-mode . variable-pitch-mode) (org-mode . variable-pitch-mode)
(org-mode . org-indent-mode)) (org-mode . org-indent-mode))
:config :config
(let ((todo-path (expand-file-name "~/Notes/todo.org"))) (let ((todo-path (expand-file-name "~/Notes/todo.org")))
(when (file-exists-p todo-path) (when (file-exists-p todo-path)
(setq org-agenda-files (list todo-path) (setq org-agenda-files (list todo-path)
org-default-notes-file todo-path))) org-default-notes-file todo-path)))
(setq org-footnote-section "" (setq org-footnote-section ""
org-startup-with-inline-images t org-startup-with-inline-images t
org-pretty-entities t org-pretty-entities t
org-indent-mode t org-indent-mode t
org-ellipsis "" org-ellipsis ""
org-footnote-section nil org-footnote-section nil
org-hide-leading-stars nil org-hide-leading-stars nil
org-link-file-path-type 'relative org-link-file-path-type 'relative
) org-image-actual-width nil ; with this image sizes can be set per image, with an attribute
(setcar (nthcdr 4 org-emphasis-regexp-components) 4) )
(setcar (nthcdr 4 org-emphasis-regexp-components) 4)
(defun org-mode-insert-code () (defun org-mode-insert-code ()
(interactive) (interactive)
(org-emphasize ?~))) (org-emphasize ?~)))
#+END_SRC #+END_SRC
** Set default archive location ** Set default archive location