aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/init.el22
-rw-r--r--.emacs.d/modes/init-evil-mode.el3
-rw-r--r--.emacs.d/modes/init-org-mode.el26
-rw-r--r--aria2.conf36
4 files changed, 70 insertions, 17 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 3c48275..68ac66c 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -25,7 +25,11 @@
(load-theme 'atom-one-dark t))
(set-face-attribute 'default nil :font "Monaco" :height 150)
-(use-package which-key)
+(use-package which-key
+ :ensure t
+ :config
+ (which-key-mode))
+
(use-package undo-tree
:config
(global-undo-tree-mode))
@@ -75,17 +79,6 @@
:config
(setq vterm-kill-buffer-on-exit t))
-(use-package dashboard
- :ensure t
- :config
- (dashboard-setup-startup-hook)
- (setq dashboard-startup-banner nil)
- (setq dashboard-items '((recents . 5)
- (bookmarks . 5)
- (projects . 5)
- (agenda . 5)
- (registers . 5))))
-
(use-package markdown-mode
:ensure t
:commands (markdown-mode gfm-mode)
@@ -102,3 +95,8 @@
(exec-path-from-shell-initialize))
(use-package avy)
+
+(use-package paredit
+ :hook ((emacs-lisp-mode . enable-paredit-mode)
+ (lisp-mode . enable-paredit-mode)
+ (scheme-mode . enable-paredit-mode)))
diff --git a/.emacs.d/modes/init-evil-mode.el b/.emacs.d/modes/init-evil-mode.el
index ba04ca5..bccbc87 100644
--- a/.emacs.d/modes/init-evil-mode.el
+++ b/.emacs.d/modes/init-evil-mode.el
@@ -5,7 +5,8 @@
(setq evil-want-integration t
evil-want-C-u-scroll t
evil-wannt-fine-undo t
- evil-want-keybinding nil)
+ evil-want-keybinding nil
+ evil-disable-insert-state-bindings t)
:config
(evil-set-leader 'normal ",")
(evil-set-undo-system 'undo-tree)
diff --git a/.emacs.d/modes/init-org-mode.el b/.emacs.d/modes/init-org-mode.el
index a542b2c..0644aa4 100644
--- a/.emacs.d/modes/init-org-mode.el
+++ b/.emacs.d/modes/init-org-mode.el
@@ -2,6 +2,7 @@
:after evil
:commands org-agenda
:config
+ (require 'org-tempo)
(setq org-directory "~/notes/")
(setq org-default-notes-file (concat org-directory "/inbox.org"))
(setq org-capture-templates
@@ -23,24 +24,41 @@
(evil-define-key 'normal org-mode-map
(kbd "TAB") 'org-cycle
(kbd "RET") 'org-open-at-point)
- (setq org-agenda-skip-deadline-prewarning-if-scheduled t)
- ; todo
+ ;; todo
(setq org-todo-keywords
'((sequence "TODO" "NEXT" "WAITING" "SOMEDAY" "PROJECT" "|" "DONE" "CANCELED")))
(setq org-log-done t)
- ; tags
+ ;; tags
(setq org-tag-alist '((:startgroup . nil)
("work" . ?w) ("home" . ?h) ("errants" . ?e)
(:endgroup . nil)
("@phone" . ?p)))
- ; org babel
+ ;; org babel
(org-babel-do-load-languages
'org-babel-load-languages
'((shell . t))))
+(use-package org-agenda
+ :ensure nil
+ :init
+ (setq org-agenda-dim-blocked-tasks nil)
+ (setq org-agenda-skip-deadline-prewarning-if-scheduled t)
+ (setq org-deadline-warning-days 10)
+ (setq org-agenda-compact-blocks t)
+ (setq org-agenda-custom-commands
+ '(("d" "Daily agenda and all TODOs"
+ ((tags "PRIORITY=\"A\""
+ ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
+ (org-agenda-overriding-header "High-priority unfinished tasks:")))
+ (agenda "" ((org-agenda-ndays-to-span 1)))
+ (alltodo ""
+ ((org-agenda-skip-function '(or (org-agenda-skip-if nil '(scheduled deadline))))
+ (org-agenda-overriding-header "All normal priority tasks:"))))))))
+
+
(use-package evil-org
:ensure t
:after (org evil)
diff --git a/aria2.conf b/aria2.conf
new file mode 100644
index 0000000..6489064
--- /dev/null
+++ b/aria2.conf
@@ -0,0 +1,36 @@
+dir=${HOME}/Downloads
+user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/601.1.43 (KHTML, like Gecko) Version/9.0 Safari/601.1.43"
+log-level=warn
+file-allocation=prealloc
+input-file=${HOME}/.aria2/session
+save-session=${HOME}/.aria2/session
+peer-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15
+auto-save-interval=60
+
+# --split
+max-concurrent-downloads=3
+continue=true
+max-overall-download-limit=0
+max-overall-upload-limit=0
+max-upload-limit=0
+
+# HTTP/FTP
+max-connection-per-server=10
+split=10
+min-split-size=1M
+
+# RPC
+enable-rpc=true
+rpc-allow-origin-all=true
+rpc-listen-all=false
+rpc-listen-port=6800
+
+## BT
+
+# start a new bt task automatically after a torrent is downloaded
+follow-torrent=true
+seed-time=120
+seed-ratio=1.0
+bt-tracker=udp://tracker.opentrackr.org:1337/announce,udp://tracker.leechers-paradise.org:6969/announce,udp://p4p.arenabg.com:1337/announce,udp://9.rarbg.to:2710/announce,udp://9.rarbg.me:2710/announce,udp://exodus.desync.com:6969/announce,udp://tracker.sbsub.com:2710/announce,udp://retracker.lanta-net.ru:2710/announce,udp://open.stealth.si:80/announce,udp://tracker.tiny-vps.com:6969/announce,udp://tracker.cyberia.is:6969/announce,udp://tracker.torrent.eu.org:451/announce,udp://tracker.moeking.me:6969/announce,udp://tracker3.itzmx.com:6961/announce,udp://ipv4.tracker.harry.lu:80/announce,udp://bt2.archive.org:6969/announce,udp://bt1.archive.org:6969/announce,http://tracker1.itzmx.com:8080/announce,udp://valakas.rollo.dnsabr.com:2710/announce,udp://tracker.zerobytes.xyz:1337/announce
+
+save-session-interval=60