Fix small things

This commit is contained in:
Marco Thomas
2021-07-20 10:51:56 +02:00
parent a145890178
commit 6d0b3481c9
3 changed files with 25 additions and 12 deletions

View File

@@ -228,7 +228,7 @@
("C-d" . ivy-switch-buffer-kill)
:map ivy-reverse-i-search-map
("C-k" . ivy-previous-line)
("C-d" . Ivy-reverse-i-search-kill))
("C-d" . ivy-reverse-i-search-kill))
:config
(ivy-mode 1))
@@ -294,10 +294,11 @@
:custom
(org-bullets-bullet-list '("" "" "" "" "" "" "")))
;; auto latex rendering in org-mode
(use-package org-fragtog
:ensure t
:hook
(org-mode . org-fragtog-mode))
:ensure t
:hook
(org-mode . org-fragtog-mode))
;; Development Packages
@@ -340,10 +341,6 @@
:after (treemacs evil)
:ensure t)
(use-package treemacs-projectile
:after (treemacs projectile)
:ensure t)
(use-package treemacs-magit
:after (treemacs magit)
:ensure t)
@@ -354,13 +351,14 @@
:commands (lsp lsp-deferred)
:init
(setq lsp-keymap-prefix "C-l")
(setq gc-cons-threshold 100000000) ;; 100 mb
(setq read-process-output-max (* 1024 1024)) ;; 1mb
(setq gc-cons-threshold (* 100 1024 1024))
(setq read-process-output-max (* 3 1024 1024))
:config
(lsp-enable-which-key-integration t)
(setq lsp-rust-server 'rust-analyzer)
(setq lsp-auto-guess-root t)
(setq lsp-idle-delay 1.)
(setq lsp-enable-file-watchers nil)
:hook
(rust-mode . lsp)
(java-mode . lsp)
@@ -495,7 +493,7 @@
(if (cddr x)
(quail-defrule (cadr x) (car (cddr x)))))
(append math-symbol-list-basic math-symbol-list-extended math-symbol-list-superscripts math-symbol-list-subscripts))
)
)
;; Java
(use-package lsp-java

View File

@@ -1,6 +1,6 @@
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation, smaller,aspectratio=169]
#+LaTeX_CLASS_OPTIONS: [presentation, smaller, aspectratio=169]
#+LANGUAGE: de
#+OPTIONS: toc:t H:2
#+BEAMER_THEME: Singapore

15
files/scripts/compress_pdf.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
OUT=$2
IN=$1
# /printer = bigger
# /ebook = smaller
gs \
-sOutputFile=${OUT} \
-sDEVICE=pdfwrite \
-dNOPAUSE \
-dBATCH \
-dPDFSETTINGS=/printer \
${IN}