Update 'aria2/' 'emacs/' 'firefox/' 'zsh/'
This commit is contained in:
parent
d94a75d87d
commit
3d3eef0094
4 changed files with 145 additions and 39 deletions
|
@ -1,5 +1,6 @@
|
|||
continue
|
||||
dir=/media/Data/Unduhan
|
||||
file-allocation=falloc
|
||||
log-level=warn
|
||||
max-connection-per-server=16
|
||||
split=16
|
||||
|
|
|
@ -31,13 +31,15 @@
|
|||
;; Spell-checker
|
||||
(setq ispell-program-name "hunspell"
|
||||
ispell-dictionary "id_ID")
|
||||
(add-to-list 'ispell-skip-region-alist '("^#+BEGIN_SRC" . "^#+END_SRC"))
|
||||
(add-hook 'text-mode-hook 'flyspell-mode
|
||||
'prog-mode-hook 'flyspell-prog-mode)
|
||||
(add-to-list 'ispell-skip-region-alist '(":\\(PROPERTIES\\|LOGBOOK\\):" . ":END:"))
|
||||
(add-to-list 'ispell-skip-region-alist '("#\\+BEGIN_SRC" . "#\\+END_SRC"))
|
||||
(add-hook 'text-mode-hook 'flyspell-mode)
|
||||
(add-hook 'prog-mode-hook 'flyspell-prog-mode)
|
||||
(add-hook 'org-mode-hook 'flyspell-mode)
|
||||
|
||||
;; Tema
|
||||
(load-theme 'modus-operandi :no-confirm)
|
||||
(tool-bar-mode -1)
|
||||
(scroll-bar-mode -1)
|
||||
(setq-default cursor-type 'bar)
|
||||
|
||||
;; Org mode
|
||||
|
@ -45,30 +47,106 @@
|
|||
(global-set-key (kbd "C-c c") #'org-capture)
|
||||
(global-set-key (kbd "C-c l") #'org-store-link)
|
||||
(setq org-agenda-files '("/media/Data/Dokumen/Agenda/")
|
||||
org-capture-templates '(("c" "Catatan singkat" entry (file+datetree "Catatan/catatan_singkat.org") "* %?")
|
||||
("t" "Tugas" entry (file+datetree "Agenda/tugas.org") "* TODO %?")
|
||||
("p" "Proyek" entry (file "Agenda/proyek.org") "* %?"))
|
||||
org-agenda-custom-commands '(("i" "Ikhtisar hari ini" ((todo "DOING" ((org-agenda-overriding-header "Tugas sedang dikerjakan:")))
|
||||
(todo "NEXT" ((org-agenda-overriding-header "Tugas selanjutnya:")))
|
||||
(tags "CLOSED>=\"<today>\"" ((org-agenda-overriding-header "Tugas selesai:")))
|
||||
(agenda "" ((org-agenda-files '("Agenda/jadwal.org"))
|
||||
(org-agenda-overriding-header "Jadwal:")
|
||||
(org-agenda-prefix-format "%?-12t% s")
|
||||
(org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline))
|
||||
(org-agenda-span 1)
|
||||
(org-deadline-warning-days 0)))))
|
||||
org-capture-templates '(("c" "Catatan singkat" entry (file+datetree "Catatan/catatan_singkat.org") "* %?\nCREATED: %U" :empty-lines-before 1)
|
||||
("t" "Tugas" entry (file+datetree "Agenda/tugas.org") "* TODO %?\nCREATED: %U" :empty-lines-before 1)
|
||||
("p" "Proyek" entry (file "Agenda/proyek.org") "* %?\nCREATED: %U" :empty-lines-before 1))
|
||||
org-agenda-custom-commands '(("i" "Ikhtisar hari ini" ((todo "DOING" ((org-agenda-overriding-header "Tugas yang sedang dikerjakan:")
|
||||
(org-agenda-prefix-format "")))
|
||||
(todo "NEXT" ((org-agenda-overriding-header "Tugas selanjutnya:")
|
||||
(org-agenda-prefix-format "")))
|
||||
(tags "CLOSED>=\"<today>\"" ((org-agenda-overriding-header "Tugas yang telah diselesaikan:")
|
||||
(org-agenda-prefix-format "")))
|
||||
(agenda "" ((org-agenda-files '("Agenda/jadwal.org"))
|
||||
(org-agenda-overriding-header "Jadwal:")
|
||||
(org-agenda-prefix-format "%?-12t% s")
|
||||
(org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline))
|
||||
(org-agenda-span 1)
|
||||
(org-deadline-warning-days 0)))))
|
||||
("d" "Deadline" ((agenda nil ((org-agenda-entry-types '(:deadline))
|
||||
(org-agenda-format-date "")
|
||||
(org-deadline-warning-days 7)
|
||||
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp "\\* NEXT"))
|
||||
(org-agenda-overriding-header "Deadline:"))))))
|
||||
(org-agenda-overriding-header "Deadline:")
|
||||
(org-agenda-prefix-format "%?-12t% s"))))))
|
||||
org-agenda-time-grid '((daily today require-timed) (430 915 1200 1515 1800 1900 2045) " ┄┄┄┄┄ " "┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄")
|
||||
org-directory "/media/Data/Dokumen/"
|
||||
org-hide-emphasis-markers t
|
||||
org-id-get-create t
|
||||
org-image-actual-width '(300)
|
||||
org-log-done 'time
|
||||
org-pretty-entities t
|
||||
org-startup-indented t
|
||||
org-startup-with-inline-images t
|
||||
org-stuck-projects '("+PROJECT/-MAYBE-DONE" ("TODO" "NEXT" "DOING") nil "\\<IGNORE\\>"))
|
||||
org-stuck-projects '("+PROJECT/-MAYBE-DONE" ("TODO" "NEXT" "DOING") nil "\\<IGNORE\\>")
|
||||
org-todo-keywords '((sequence "TODO" "NEXT" "DOING" "|" "DONE" "CANCELED"))
|
||||
org-todo-keyword-faces '(("NEXT" . "dark orange")
|
||||
("DOING" . "dark green")
|
||||
("DONE" . (:background "dark green" :foreground "white" :weight bold))
|
||||
("CANCELED" . (:background "red" :foreground "white" :weight bold))))
|
||||
|
||||
;; Paket-paket
|
||||
|
||||
(use-package all-the-icons
|
||||
:if (display-graphic-p))
|
||||
|
||||
(use-package all-the-icons-dired
|
||||
:hook (dired-mode . all-the-icons-dired-mode))
|
||||
|
||||
(use-package citar
|
||||
:custom
|
||||
(org-cite-global-bibliography '("/media/Data/Dokumen/Referensi/referensi.bib"))
|
||||
(org-cite-insert-processor 'citar)
|
||||
(org-cite-follow-processor 'citar)
|
||||
(org-cite-activate-processor 'citar)
|
||||
(citar-bibliography org-cite-global-bibliography)
|
||||
:bind
|
||||
(:map org-mode-map :package org ("C-c b" . #'org-cite-insert))
|
||||
:hook
|
||||
(LaTeX-mode . citar-capf-setup)
|
||||
(org-mode . citar-capf-setup)
|
||||
:config
|
||||
(defvar citar-indicator-files-icons (citar-indicator-create
|
||||
:symbol (all-the-icons-faicon "file-o"
|
||||
:face 'all-the-icons-green
|
||||
:v-adjust -0.1)
|
||||
:function #'citar-has-files
|
||||
:padding " "
|
||||
:tag "has:files"))
|
||||
(defvar citar-indicator-links-icons (citar-indicator-create
|
||||
:symbol (all-the-icons-octicon "link"
|
||||
:face 'all-the-icons-orange
|
||||
:v-adjust 0.01)
|
||||
:function #'citar-has-links
|
||||
:padding " "
|
||||
:tag "has:links"))
|
||||
(defvar citar-indicator-notes-icons (citar-indicator-create
|
||||
:symbol (all-the-icons-material
|
||||
"speaker_notes"
|
||||
:face 'all-the-icons-blue
|
||||
:v-adjust -0.3)
|
||||
:function #'citar-has-notes
|
||||
:padding " "
|
||||
:tag "has:notes"))
|
||||
(defvar citar-indicator-cited-icons (citar-indicator-create
|
||||
:symbol (all-the-icons-faicon "circle-o"
|
||||
:face 'all-the-icon-green)
|
||||
:function #'citar-is-cited
|
||||
:padding " "
|
||||
:tag "is:cited"))
|
||||
(setq citar-indicators (list citar-indicator-files-icons
|
||||
citar-indicator-links-icons
|
||||
citar-indicator-notes-icons
|
||||
citar-indicator-cited-icons)))
|
||||
|
||||
(use-package citar-embark
|
||||
:after citar embark
|
||||
:no-require
|
||||
:config (citar-embark-mode))
|
||||
|
||||
(use-package citar-org-roam
|
||||
:after (citar org-roam)
|
||||
:config (citar-org-roam-mode))
|
||||
|
||||
(use-package company
|
||||
:config (global-company-mode t))
|
||||
|
||||
|
@ -141,17 +219,23 @@
|
|||
(use-package consult-projectile
|
||||
:bind ("C-c p" . consult-projectile))
|
||||
|
||||
(use-package doom-modeline
|
||||
:init
|
||||
(doom-modeline-mode 1)
|
||||
(add-to-list 'doom-modeline-mode-alist '(dashboard-mode)))
|
||||
|
||||
(use-package dashboard
|
||||
:ensure t
|
||||
:config
|
||||
(dashboard-setup-startup-hook)
|
||||
(setq dashboard-banner-logo-title ""
|
||||
dashboard-center-content nil
|
||||
dashboard-footer-messages nil
|
||||
dashboard-center-content t
|
||||
dashboard-footer-messages '("")
|
||||
dashboard-items '((recents . 5)
|
||||
(bookmarks . 5)
|
||||
(projects . 5))
|
||||
dashboard-show-shortcuts nil
|
||||
dashboard-startup-banner nil
|
||||
dashboard-vertically-center-content t
|
||||
initial-buffer-choice (lambda () (get-buffer-create dashboard-buffer-name))))
|
||||
|
||||
(use-package embark
|
||||
|
@ -163,8 +247,10 @@
|
|||
(window-parameters (mode-line-format . none)))))
|
||||
|
||||
(use-package embark-consult
|
||||
:hook
|
||||
(embark-collect-mode . consult-preview-at-point-mode))
|
||||
:hook (embark-collect-mode . consult-preview-at-point-mode))
|
||||
|
||||
(use-package hide-mode-line
|
||||
:hook (dashboard-mode . hide-mode-line-mode))
|
||||
|
||||
(use-package marginalia
|
||||
:init (marginalia-mode))
|
||||
|
@ -172,6 +258,7 @@
|
|||
(use-package modus-themes
|
||||
:init
|
||||
(require 'modus-themes)
|
||||
(load-theme 'modus-operandi :no-confirm)
|
||||
(customize-set-variable 'modus-themes-common-palette-overrides
|
||||
'((bg-hover bg-active)
|
||||
(bg-mode-line-active bg-inactive)
|
||||
|
@ -186,34 +273,49 @@
|
|||
(completion-category-defaults nil)
|
||||
(completion-category-overrides '((file (styles basic partial-completion)))))
|
||||
|
||||
(use-package org-appear
|
||||
:hook (org-mode . org-appear-mode))
|
||||
|
||||
(use-package org-fragtog
|
||||
:hook (org-mode . org-fragtog-mode))
|
||||
|
||||
(use-package org-pomodoro
|
||||
:bind (("C-c C-x C-<tab>" . org-pomodoro))
|
||||
:commands (org-pomodoro)
|
||||
:config (setq org-pomodoro-length 45
|
||||
org-pomodoro-long-break-length 15
|
||||
org-pomodoro-manual-break t
|
||||
org-pomodoro-short-break-length 15))
|
||||
|
||||
(use-package org-roam
|
||||
:custom
|
||||
(org-roam-directory "~/.emacs.d/org-roam/")
|
||||
(org-roam-capture-templates '(("c" "Catatan" plain "%?" :target (file+head "${slug}.org" "#+TITLE: ${title}") nil nil)))
|
||||
(org-roam-capture-templates '(("c" "Catatan" plain "%?" :target (file+head "${slug}.org" "#+TITLE: ${title}\n#+DATE: %U\n\n") nil nil)))
|
||||
(org-roam-database-connector 'sqlite-builtin)
|
||||
:bind (("C-c n f" . org-roam-node-find)
|
||||
("C-c n i" . org-roam-node-insert)
|
||||
("C-c n l" . org-roam-buffer-toggle))
|
||||
:config
|
||||
(org-roam-db-autosync-mode))
|
||||
:config (setq org-roam-db-gc-threshold most-positive-fixnum)
|
||||
:init
|
||||
(require 'org-roam-protocol)
|
||||
(org-roam-db-autosync-mode 1))
|
||||
|
||||
(use-package org-roam-ui
|
||||
:config
|
||||
(setq org-roam-ui-sync-theme t
|
||||
org-roam-ui-follow t
|
||||
org-roam-ui-update-on-save t
|
||||
org-roam-ui-open-on-start t))
|
||||
:after org-roam
|
||||
:bind (("C-c n g" . org-roam-ui-mode))
|
||||
:config (setq org-roam-ui-sync-theme t
|
||||
org-roam-ui-follow t
|
||||
org-roam-ui-update-on-save t
|
||||
org-roam-ui-open-on-start t))
|
||||
|
||||
(use-package projectile
|
||||
:init
|
||||
(projectile-mode))
|
||||
:init (projectile-mode))
|
||||
|
||||
(use-package vertico
|
||||
:init
|
||||
(vertico-mode))
|
||||
:init (vertico-mode))
|
||||
|
||||
(use-package which-key
|
||||
:init
|
||||
(which-key-mode))
|
||||
:init (which-key-mode))
|
||||
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
|
@ -221,7 +323,7 @@
|
|||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(package-selected-packages
|
||||
'(dashboard company-go company-web company-box company which-key magit consult-projectile projectile embark-consult embark marginalia orderless consult vertico modus-themes org-roam-ui org-roam magit-section emacsql-sqlite use-package)))
|
||||
'(org-fragtog org-roam-ui org-pomodoro all-the-icons-dired emacsql-sqlite-builtin citar-org-roam org-appear hide-mode-line doom-modeline all-the-icons citar-embark citar nano-modeline which-key vertico orderless modus-themes marginalia magit embark-consult dashboard consult-projectile company-web company-go company-box)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
|
|
|
@ -12,7 +12,9 @@ user_pref("browser.shell.shortcutFavicons", true);
|
|||
user_pref("privacy.clearOnShutdown.downloads", false);
|
||||
user_pref("privacy.clearOnShutdown.cookies", false);
|
||||
user_pref("privacy.clearOnShutdown.history", false);
|
||||
user_pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", false);
|
||||
user_pref("privacy.clearOnShutdown.offlineApps", false);
|
||||
user_pref("privacy.clearSiteData.historyFormDataAndDownloads", false);
|
||||
|
||||
user_pref("webgl.disabled", false);
|
||||
user_pref("privacy.resistFingerprinting", false);
|
||||
|
|
|
@ -4,7 +4,7 @@ source ~/.p10k.zsh
|
|||
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source ~/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
||||
|
||||
setopt histignorealldups sharehistory
|
||||
setopt histignorealldups globdots sharehistory
|
||||
|
||||
# Keybinding
|
||||
bindkey -e
|
||||
|
@ -44,3 +44,4 @@ zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
|||
|
||||
fpath=(~/.zsh/zsh-completions/src $fpath)
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
source /etc/zsh_command_not_found
|
||||
|
|
Loading…
Reference in a new issue