feat: more more minor changes

This commit is contained in:
Flinner Yuu 2025-04-23 15:05:48 +03:00
parent 4bf7bb8cfa
commit dc8d190fa1
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
2 changed files with 66 additions and 56 deletions

View File

@ -3,8 +3,8 @@
# ----- Parameters ------ # # ----- Parameters ------ #
# Coordinates: https://www.mapcoordinates.net/en # Coordinates: https://www.mapcoordinates.net/en
# Set lat and long explicitly, or leave commented to get them automatically from ipinfo.io # Set lat and long explicitly, or leave commented to get them automatically from ipinfo.io
lat='' lat="${lat:-}"
long='' long="${long:-}"
# Calculation Method: https://api.aladhan.com/v1/methods # Calculation Method: https://api.aladhan.com/v1/methods
method='4' method='4'
# Print Text Language (en/ar) # Print Text Language (en/ar)

View File

@ -80,12 +80,21 @@ remove warning by use-package
(setq visible-bell nil) ; Set up the visible bell (setq visible-bell nil) ; Set up the visible bell
(column-number-mode) ; Display Column Number in the modline (column-number-mode) ; Display Column Number in the modline
(setq use-dialog-box nil) ; I don't like to confirm anything with a mouse! (setq use-dialog-box nil) ; I don't like to confirm anything with a mouse!
(setq max-mini-window-height 1) ; Maximum height for resizing mini-windows (the minibuffer and the echo area). = 1 line
(defalias 'yes-or-no-p 'y-or-n-p) ; I don't want to type 'yes' everytime!, 'y' is enough (defalias 'yes-or-no-p 'y-or-n-p) ; I don't want to type 'yes' everytime!, 'y' is enough
;(setq native-comp-deferred-compilation t); emacs 30+ i guess ;(setq native-comp-deferred-compilation t); emacs 30+ i guess
(setq comp-deferred-compilation-deny-list '()) ;; turn off bytecompiler warnings (setq comp-deferred-compilation-deny-list '()) ;; turn off bytecompiler warnings
(setq native-comp-async-report-warnings-errors nil) (setq native-comp-async-report-warnings-errors nil)
;; This is to refresh org buffers when reloading agenda
;; When I sync from another device.
(global-auto-revert-mode 1)
(setq auto-revert-use-notify 1) ; same thing with set to 1
(setq auto-revert-verbose t)
#+end_src #+end_src
Emacs Backups trashing local dir! Emacs Backups trashing local dir!
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -830,7 +839,7 @@ slow loading! defer it
:custom :custom
(company-tooltip-minimum-width 40) ;reduce flicker due to changing width (company-tooltip-minimum-width 40) ;reduce flicker due to changing width
(global-company-mode t) (global-company-mode t)
(company-idle-delay 0.01) ;; how long to wait until popup (company-idle-delay 0.1) ;; how long to wait until popup
(company-minimum-prefix-length 1) ;; The minimum prefix length for idle completion. (company-minimum-prefix-length 1) ;; The minimum prefix length for idle completion.
(company-selection-wrap-around t) (company-selection-wrap-around t)
;; (company-begin-commands nil) ;; uncomment to disable popup ;; (company-begin-commands nil) ;; uncomment to disable popup
@ -1172,7 +1181,7 @@ From: https://yiufung.net/post/anki-org/
*** Weeks per semester *** Weeks per semester
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defun org-week-to-class-week (week) (defun org-week-to-class-week (week)
(- week 34)) (- week 0))
(advice-add 'org-days-to-iso-week :filter-return (advice-add 'org-days-to-iso-week :filter-return
#'org-week-to-class-week) #'org-week-to-class-week)
@ -1305,14 +1314,14 @@ From: https://yiufung.net/post/anki-org/
(setq org-agenda-span 'day); a week is too much (setq org-agenda-span 'day); a week is too much
(setq org-super-agenda-groups (setq org-super-agenda-groups
'((:log t :order 99); logs at bottom '((:log t :order 99); logs at bottom
(:name "S" (:name "Study"
:order 97 :order 97
:tag ("S")) :tag ("S"))
(:name "Life" (:name "Life"
:order 97 :order 98
:tag ("L")) :tag ("L"))
(:name "Habits" (:name "Habits"
:order 98 :order 99
:habit t) :habit t)
(:name "Overdue" (:name "Overdue"
:deadline past :deadline past
@ -1655,6 +1664,7 @@ This is done in Performance section
(lsp-eldoc-enable-hover nil) (lsp-eldoc-enable-hover nil)
(lsp-ui-doc-show-with-mouse nil) (lsp-ui-doc-show-with-mouse nil)
(lsp-keep-workspace-alive nil) (lsp-keep-workspace-alive nil)
(lsp-auto-execute-action nil) ; always ask for actions, even if there is only one option!
(lsp-idle-delay 0.6) (lsp-idle-delay 0.6)
(lsp-completion-provider :capf) (lsp-completion-provider :capf)
(lsp-prefer-flymake nil) (lsp-prefer-flymake nil)
@ -1739,7 +1749,7 @@ Use the Debug Adapter Protocol for running tests and debugging
#+end_src #+end_src
*** Highlihght Indenation Mode *** Highlihght Indenation Mode
#+begin_src emacs-lisp #+begin_src emacs-lisp :tangle no
(use-package highlight-indent-guides (use-package highlight-indent-guides
:hook (prog-mode . highlight-indent-guides-mode) :hook (prog-mode . highlight-indent-guides-mode)
:custom (highlight-indent-guides-method 'character) :custom (highlight-indent-guides-method 'character)
@ -2136,7 +2146,7 @@ CMake
(add-hook 'before-save-hook 'lsp-format-buffer nil t)))) (add-hook 'before-save-hook 'lsp-format-buffer nil t))))
#+end_src #+end_src
*** python *** COMMENT python
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package elpy (use-package elpy
:ensure t :ensure t