diff options
author | Blendoit <blendoit@gmail.com> | 2020-11-07 14:33:54 -0800 |
---|---|---|
committer | Blendoit <blendoit@gmail.com> | 2020-11-07 14:33:54 -0800 |
commit | cc6c2a45f151462582728e163806ce93c8605d13 (patch) | |
tree | de72ae93eba8999a32c73e06709fe14ce4d9a7c4 | |
parent | d9f98cae151e51ce2c22d346afda24bfb668550b (diff) |
misc
-rw-r--r-- | custom.el | 2 | ||||
-rw-r--r-- | smart-documents.org | 49 | ||||
-rw-r--r-- | smart-documents.pdf | bin | 251641 -> 254585 bytes | |||
-rw-r--r-- | templates/documents/default.org | 2 |
4 files changed, 22 insertions, 31 deletions
@@ -32,7 +32,7 @@ '(org-log-done 'time) '(org-startup-align-all-tables t) '(package-selected-packages - '(org-pretty-table mode-icons dashboard undo-tree hungry-delete smooth-scroll smooth-scrolling delight yasnippet-snippets yasnippet org-sticky-header awesome-tab tabbar-ruler tabbar-mode linum-relative dumb-jump csv-mode rainbow-mode org-mouse projectile minimap gnuplot ledger-mode company-mode wombat-theme wombar-theme which-key srefactor-lisp srefactor all-the-icons flycheck ibuffer-sidebar pdf-tools magit rainbow-delimiters smartparens mixed-pitch org-bullets use-package tabbar powerline ivy-hydra flatui-theme evil counsel company benchmark-init)) + '(semantic-refactor org-pretty-table mode-icons dashboard undo-tree hungry-delete smooth-scroll smooth-scrolling delight yasnippet-snippets yasnippet org-sticky-header awesome-tab tabbar-ruler tabbar-mode linum-relative dumb-jump csv-mode rainbow-mode org-mouse projectile minimap gnuplot ledger-mode company-mode wombat-theme wombar-theme which-key srefactor-lisp srefactor all-the-icons flycheck ibuffer-sidebar pdf-tools magit rainbow-delimiters smartparens mixed-pitch org-bullets use-package tabbar powerline ivy-hydra flatui-theme evil counsel company benchmark-init)) '(pdf-view-midnight-colors '("#DCDCCC" . "#383838")) '(save-place-mode t) '(send-mail-function 'smtpmail-send-it) diff --git a/smart-documents.org b/smart-documents.org index 38542a7..f7b39a2 100644 --- a/smart-documents.org +++ b/smart-documents.org @@ -1071,14 +1071,16 @@ The following packages are loaded for every time we export to LaTeX. #+BEGIN_SRC emacs-lisp :tangle yes (setq org-latex-packages-alist - '(("AUTO" "polyglossia" t - ("xelatex" "lualatex")) - ("AUTO" "babel" t - ("pdflatex")) - ("" "booktabs" t - ("pdflatex")) - ("table,svgnames" "xcolor" t - ("pdflatex")))) + '(("AUTO" "babel" t + ("pdflatex")) + ("AUTO" "polyglossia" t ; Babel replacement for LuaLaTeX + ("xelatex" "lualatex")) + ("" "booktabs" t ; Publication quality tables in LaTeX + ("pdflatex")) + ("table,svgnames" "xcolor" t ; svgnames opens up ~150 color keywords + ("pdflatex")) + ("skip=0.5\\baselineskip" "caption" t ; Increase space between floats and captions + ("pdflatex" "lualatex")))) #+END_SRC *** Colored source blocks in PDF export @@ -1225,12 +1227,7 @@ working on currently. "^[[:space:]]*#\\+TITLE:[[:space:]]*\\(.*?\\)[[:space:]]*$" nil t) (match-string 1))) - (save-excursion - (goto-char (point-min)) - (when (re-search-forward - "^[[:space:]]*#\\+DATE:[[:space:]]*\\(.*?\\)[[:space:]]*$" - nil t) - (match-string 1)))))))) + nil))))) #+END_SRC **** Mode line @@ -1249,19 +1246,6 @@ Then, we use the previously declared function to set up our mode line. ** Window -*** Tab line - -#+BEGIN_SRC emacs-lisp :tangle yes -(global-tab-line-mode) -#+END_SRC - -*** Window margins - -#+BEGIN_SRC emacs-lisp :tangle yes -(set-window-margins nil 4 2) -#+END_SRC - - ** Buffer *** Save cursor location @@ -1279,12 +1263,19 @@ length. #+BEGIN_SRC emacs-lisp :tangle yes (setq-default fill-column 79) + (add-hook 'org-mode-hook + 'turn-on-auto-fill) ; Automatically break lines longer than + ; =fill-column=. #+END_SRC -Automatically break lines longer than =fill-column=. +*** Right and left margins + +We set reasonable margins on either side of our buffer. #+BEGIN_SRC emacs-lisp :tangle yes - (add-hook 'org-mode-hook 'turn-on-auto-fill) +(setq-default left-margin-width 6 right-margin-width 6) + +(use-package srefactor) #+END_SRC ** Text diff --git a/smart-documents.pdf b/smart-documents.pdf Binary files differindex da792e5..6339507 100644 --- a/smart-documents.pdf +++ b/smart-documents.pdf diff --git a/templates/documents/default.org b/templates/documents/default.org index 8131d3d..4d7e731 100644 --- a/templates/documents/default.org +++ b/templates/documents/default.org @@ -34,4 +34,4 @@ #+LATEX_HEADER_EXTRA: \fancyhead[C]{\large\textbf{\thetitle}} #+LATEX_HEADER_EXTRA: \fancyhead[R]{\thedate} #+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.5pt} -#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[10pt] Page \thepage/\pageref*{LastPage}\\[8pt]\footnotesize Compiled with \includegraphics[width=1.618ex]{~/.emacs.d/img/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/LuaTeX_logo.png}/...\\ Copyright \copyright~2020 Marius Peter. All rights reserved. } +#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[0.8em] Page \thepage/\pageref*{LastPage}\\[0.8em]\footnotesize Compiled with \includegraphics[width=1.618ex]{~/.emacs.d/img/EmacsIcon.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/Org-mode-unicorn.png}/\includegraphics[width=1.618ex]{~/.emacs.d/img/LuaTeX_logo.png}/...\\ Copyright \copyright~2020 Marius Peter. All rights reserved. } |