config: remove some outdated stuff

This commit is contained in:
xerus2000 2020-12-07 21:55:59 +01:00
parent 2b2aef72de
commit 379e37a093
2 changed files with 5 additions and 10 deletions

View File

@ -53,9 +53,7 @@
(setq initial-major-mode 'org-mode)
(desktop-save-mode t)
(whitespace-mode -1)
(whitespace-mode 0)
;; Backups & auto-saves
(setq auto-save-default t
@ -95,11 +93,13 @@
(set-file-template! 'org-mode :ignore t)
(setq default-directory org-directory)
(setq org-read-date-prefer-future nil)
(setq org-image-actual-width t)
(setq org-image-actual-width nil)
; Exporting
; Exporting - https://orgmode.org/manual/Export-Settings.html
(setq org-latex-packages-alist '(("margin=3cm" "geometry") ("avoid-all" "widows-and-orphans")))
(setq org-export-with-sub-superscripts nil)
(setq org-export-with-tags nil)
(setq org-export-with-tasks nil)
;; org toggle source blocks with C-c t
(defvar org-blocks-hidden nil)

View File

@ -62,11 +62,6 @@ sudo iptables -L OUTPUT | grep -q "^chain-times" || sudo iptables -A OUTPUT -j c
sudo iptables-save | sudo tee /etc/iptables.rules
echo "@reboot root $(which iptables-restore) < /etc/iptables.rules" | sudo tee /etc/cron.d/iptables-times
highlight "Workrave"
sudo sed -i 's|Exec=workrave|Exec=sh -c "workrave \& sleep 1; dbus-send --session --dest=org.workrave.Workrave --type=method_call /org/workrave/Workrave/Core org.workrave.CoreInterface.SetOperationMode string:normal"|' /usr/share/applications/workrave.desktop
ln -sfv /usr/share/applications/workrave.desktop $XDG_CONFIG_HOME/autostart
echo " 0,20,40 * * * * janek pgrep workrave || XAUTHORITY='$XDG_CACHE_HOME/Xauthority' DISPLAY=:0 /usr/bin/workrave" | sudo tee /etc/cron.d/workrave
highlight "Cron logging"
echo 'cron.* /var/log/cron.log' | sudo tee /etc/rsyslog.d/60-cron.conf
hasService=$(which service 2>/dev/null)