Update Jan 2023
This commit is contained in:
@@ -28,18 +28,21 @@
|
||||
(add-hook 'prog-mode-hook #'pixel-scroll-mode)
|
||||
(add-hook 'text-mode-hook #'pixel-scroll-mode)
|
||||
|
||||
(add-hook 'prog-mode-hook #'pixel-scroll-precision-mode)
|
||||
(add-hook 'text-mode-hook #'pixel-scroll-precision-mode)
|
||||
|
||||
(setq fancy-splash-image "/home/minhradz/.doom.d/marivector.png")
|
||||
|
||||
(defun synchronize-theme ()
|
||||
(let* ((light-theme 'doom-nord-light)
|
||||
(let* ((light-theme 'doom-nord-light)
|
||||
(dark-theme 'doom-nord)
|
||||
(start-time-light-theme 6)
|
||||
(end-time-light-theme 16)
|
||||
(hour (string-to-number (substring (current-time-string) 11 13)))
|
||||
(next-theme (if (member hour (number-sequence start-time-light-theme end-time-light-theme))
|
||||
light-theme dark-theme)))
|
||||
(when (not (equal doom-theme next-theme))
|
||||
(setq doom-theme next-theme)
|
||||
light-theme dark-theme)))
|
||||
(when (not (equal doom-theme next-theme))
|
||||
(setq doom-theme next-theme)
|
||||
(load-theme next-theme t))))
|
||||
|
||||
(run-with-timer 0 900 'synchronize-theme)
|
||||
@@ -79,19 +82,16 @@
|
||||
(custom-set-variables
|
||||
'(git-gutter:update-interval 0.02))
|
||||
|
||||
;; ;; tree-sitter syntax highlighting
|
||||
;; (use-package! tree-sitter
|
||||
;; :config
|
||||
;; (require 'tree-sitter-langs)
|
||||
;; (global-tree-sitter-mode)
|
||||
;; (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode))
|
||||
;;
|
||||
;; tree-sitter syntax highlighting
|
||||
(require 'treesit)
|
||||
(treesit-available-p)
|
||||
(setq treesit-extra-load-path "/home/minhradz/Desktop/Packages/tree-sitter-module/dist/")
|
||||
|
||||
(global-tree-sitter-mode)
|
||||
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)
|
||||
|
||||
(require 'elcord)
|
||||
(elcord-mode)
|
||||
(setq elcord-use-major-mode-as-main-icon 't)
|
||||
;; (require 'elcord)
|
||||
;; (elcord-mode)
|
||||
;; (setq elcord-use-major-mode-as-main-icon 't)
|
||||
|
||||
;; gpg
|
||||
(setq epg-pinentry-mode 'loopback)
|
||||
@@ -274,11 +274,22 @@
|
||||
(800 1200 1600 2000)
|
||||
"......" "----------------")))
|
||||
|
||||
;; Clojure stuffs
|
||||
;; Lispys stuffs
|
||||
(setq clojure-indent-style :always-align)
|
||||
(add-hook 'lisp-mode-hook #'evil-cleverparens-mode)
|
||||
(add-hook 'clojure-mode-hook #'evil-cleverparens-mode)
|
||||
|
||||
(eval-after-load 'cider
|
||||
#'emidje-setup)
|
||||
(autoload 'enable-paredit-mode "paredit"
|
||||
"Turn on pseudo-structural editing of Lisp code."
|
||||
t)
|
||||
(add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
|
||||
(add-hook 'lisp-mode-hook 'enable-paredit-mode)
|
||||
(add-hook 'lisp-interaction-mode-hook 'enable-paredit-mode)
|
||||
(add-hook 'clojure-mode-hook 'enable-paredit-mode)
|
||||
(add-hook 'scheme-mode-hook 'enable-paredit-mode)
|
||||
|
||||
;; (eval-after-load 'cider
|
||||
;; #'emidje-setup)
|
||||
|
||||
(defun delete-file-and-buffer ()
|
||||
"Kill the current buffer and deletes the file it is visiting."
|
||||
@@ -292,25 +303,6 @@
|
||||
(kill-buffer)))
|
||||
(message "Not a file visiting buffer!"))))
|
||||
|
||||
;; ;; email stuffs
|
||||
;; (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
|
||||
|
||||
;; ;; Each path is relative to the path of the maildir you passed to mu
|
||||
;; (set-email-account! "minhtrannhat.com"
|
||||
;; '((mu4e-sent-folder . "/minhtrannhat@minhtrannhat.com/Sent")
|
||||
;; (mu4e-drafts-folder . "/minhtrannhat@minhtrannhat.com/Drafts")
|
||||
;; (mu4e-trash-folder . "/minhtrannhat@minhtrannhat.com/Trash")
|
||||
;; (mu4e-refile-folder . "/minhtrannhat@minhtrannhat.com/All Mail")
|
||||
;; (smtpmail-smtp-user . "minhtrannhat@minhtrannhat.com")
|
||||
;; (mu4e-compose-signature . "Minh Tran"))
|
||||
;; t)
|
||||
|
||||
;; (setq sendmail-program "/usr/bin/msmtp"
|
||||
;; send-mail-function #'smtpmail-send-it
|
||||
;; message-sendmail-f-is-evil t
|
||||
;; message-sendmail-extra-arguments '("--read-envelope-from")
|
||||
;; message-send-mail-function #'message-send-mail-with-sendmail)
|
||||
|
||||
(use-package org-recur
|
||||
:hook ((org-mode . org-recur-mode)
|
||||
(org-agenda-mode . org-recur-agenda-mode))
|
||||
|
@@ -12,7 +12,7 @@
|
||||
;; directory (for easy access to its source code).
|
||||
|
||||
;; Doom no longer native compile ahead of time so we have to hack around this smh
|
||||
(setq native-comp-deferred-compilation nil)
|
||||
(setq native-comp-jit-compilation nil)
|
||||
(after! (doom-packages straight)
|
||||
(setq straight--native-comp-available t))
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
;;japanese
|
||||
;;layout ; auie,ctsrnm is the superior home row
|
||||
:completion
|
||||
company ; the ultimate code completion backend
|
||||
(company +tng) ; the ultimate code completion backend
|
||||
;;helm ; the *other* search engine for love and life
|
||||
;;ido ; the other *other* search engine...
|
||||
(ivy +fuzzy +icons) ; a search engine for love and life
|
||||
@@ -34,18 +34,18 @@
|
||||
(emoji +unicode) ; 🙂
|
||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||
;;hydra
|
||||
indent-guides ; highlighted indent columns
|
||||
;;indent-guides ; highlighted indent columns
|
||||
ligatures ; ligatures and symbols to make your code pretty again
|
||||
;;minimap ; show a map of the code on the side
|
||||
(modeline +light) ; snazzy, Atom-inspired modeline, plus API
|
||||
;;nav-flash ; blink cursor line after big motions
|
||||
;;neotree ; a project drawer, like NERDTree for vim
|
||||
ophints ; highlight the region an operation acts on
|
||||
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||
(popup +all +defaults) ; tame sudden yet inevitable temporary windows
|
||||
;;tabs ; a tab bar for Emacs
|
||||
(treemacs +lsp) ; a project drawer, like neotree but cooler
|
||||
unicode ; extended unicode support for various languages
|
||||
vc-gutter ; vcs diff in the fringe
|
||||
(vc-gutter +pretty) ; vcs diff in the fringe
|
||||
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
||||
(window-select +numbers) ; visually switch windows
|
||||
workspaces ; tab emulation, persistence & separate workspaces
|
||||
@@ -56,7 +56,7 @@
|
||||
fold ; (nigh) universal code folding
|
||||
(format +onsave) ; automated prettiness
|
||||
;;god ; run Emacs commands without modifier keys
|
||||
;;lispy ; vim for lisp, for people who don't like vim
|
||||
;; lispy ; vim for lisp, for people who don't like vim
|
||||
multiple-cursors ; editing in many places at once
|
||||
;;objed ; text object editing for the innocent
|
||||
;;parinfer ; turn lisp into python, sort of
|
||||
@@ -66,7 +66,7 @@
|
||||
:emacs
|
||||
(dired +icons +ranger) ; making dired pretty [functional]
|
||||
electric ; smarter, keyword-based electric-indent
|
||||
ibuffer ; interactive buffer management
|
||||
(ibuffer +icons) ; interactive buffer management
|
||||
undo ; persistent, smarter undo for your inevitable mistakes
|
||||
vc ; version-control and Emacs, sitting in a tree
|
||||
:term
|
||||
@@ -81,9 +81,9 @@
|
||||
:tools
|
||||
;;ansible
|
||||
;;debugger ; FIXME stepping through code, to help you add bugs
|
||||
tree-sitter
|
||||
;;tree-sitter
|
||||
direnv
|
||||
(docker +lsp)
|
||||
;;(docker +lsp)
|
||||
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||
ein ; tame Jupyter notebooks with emacs
|
||||
(eval +overlay) ; run code, run (also, repls)
|
||||
@@ -133,7 +133,7 @@
|
||||
(json +lsp) ; At least it ain't XML
|
||||
(java +lsp) ; the poster child for carpal tunnel syndrome
|
||||
(javascript +lsp +tree-sitter) ; all(hope(abandon(ye(who(enter(here))))))
|
||||
(julia +lsp) ; a better, faster MATLAB
|
||||
;;(julia +lsp) ; a better, faster MATLAB
|
||||
;;kotlin ; a better, slicker Java(Script)
|
||||
latex ; writing papers in Emacs has never been so fun
|
||||
;;lean ; for folks with too much to prove
|
||||
@@ -175,8 +175,11 @@
|
||||
;;emms
|
||||
;;everywhere ; *leave* Emacs!? You must be joking
|
||||
;;irc ; how neckbeards socialize
|
||||
|
||||
(rss +org) ; emacs as an RSS reader
|
||||
;;twitter ; twitter client https://twitter.com/vnought
|
||||
|
||||
:config
|
||||
;;literate
|
||||
(default +bindings +smartparens))
|
||||
(default +bindings +smartparens)
|
||||
)
|
||||
|
@@ -48,14 +48,12 @@
|
||||
;(unpin! pinned-package another-pinned-package)
|
||||
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||
;(unpin! t)
|
||||
(package! elcord)
|
||||
(unpin! org-roam)
|
||||
(package! websocket)
|
||||
(package! org-roam-ui :recipe (:host github :repo "org-roam/org-roam-ui" :files ("*.el" "out")))
|
||||
(package! magit-delta)
|
||||
(package! blamer :recipe (:host github :repo "artawower/blamer.el"))
|
||||
(package! org-fragtog)
|
||||
;(package! org-contacts :recipe (:host nil :type git :repo "https://repo.or.cz/org-contacts.git"))
|
||||
(package! org-recur)
|
||||
(package! emidje)
|
||||
(package! evil-cleverparens)
|
||||
(unpin! rustic)
|
||||
|
Reference in New Issue
Block a user