mirror of https://github.com/Flinner/dots.git
feat: more more minor changes
This commit is contained in:
parent
4bf7bb8cfa
commit
dc8d190fa1
|
@ -3,8 +3,8 @@
|
|||
# ----- Parameters ------ #
|
||||
# Coordinates: https://www.mapcoordinates.net/en
|
||||
# Set lat and long explicitly, or leave commented to get them automatically from ipinfo.io
|
||||
lat=''
|
||||
long=''
|
||||
lat="${lat:-}"
|
||||
long="${long:-}"
|
||||
# Calculation Method: https://api.aladhan.com/v1/methods
|
||||
method='4'
|
||||
# Print Text Language (en/ar)
|
||||
|
|
|
@ -80,12 +80,21 @@ remove warning by use-package
|
|||
(setq visible-bell nil) ; Set up the visible bell
|
||||
(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 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
|
||||
|
||||
;(setq native-comp-deferred-compilation t); emacs 30+ i guess
|
||||
(setq comp-deferred-compilation-deny-list '()) ;; turn off bytecompiler warnings
|
||||
(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
|
||||
Emacs Backups trashing local dir!
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -830,7 +839,7 @@ slow loading! defer it
|
|||
:custom
|
||||
(company-tooltip-minimum-width 40) ;reduce flicker due to changing width
|
||||
(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-selection-wrap-around t)
|
||||
;; (company-begin-commands nil) ;; uncomment to disable popup
|
||||
|
@ -1172,7 +1181,7 @@ From: https://yiufung.net/post/anki-org/
|
|||
*** Weeks per semester
|
||||
#+begin_src emacs-lisp
|
||||
(defun org-week-to-class-week (week)
|
||||
(- week 34))
|
||||
(- week 0))
|
||||
|
||||
(advice-add 'org-days-to-iso-week :filter-return
|
||||
#'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-super-agenda-groups
|
||||
'((:log t :order 99); logs at bottom
|
||||
(:name "S"
|
||||
(:name "Study"
|
||||
:order 97
|
||||
:tag ("S"))
|
||||
(:name "Life"
|
||||
:order 97
|
||||
:order 98
|
||||
:tag ("L"))
|
||||
(:name "Habits"
|
||||
:order 98
|
||||
:order 99
|
||||
:habit t)
|
||||
(:name "Overdue"
|
||||
:deadline past
|
||||
|
@ -1655,6 +1664,7 @@ This is done in Performance section
|
|||
(lsp-eldoc-enable-hover nil)
|
||||
(lsp-ui-doc-show-with-mouse 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-completion-provider :capf)
|
||||
(lsp-prefer-flymake nil)
|
||||
|
@ -1739,7 +1749,7 @@ Use the Debug Adapter Protocol for running tests and debugging
|
|||
#+end_src
|
||||
|
||||
*** Highlihght Indenation Mode
|
||||
#+begin_src emacs-lisp
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
(use-package highlight-indent-guides
|
||||
:hook (prog-mode . highlight-indent-guides-mode)
|
||||
:custom (highlight-indent-guides-method 'character)
|
||||
|
@ -2136,7 +2146,7 @@ CMake
|
|||
(add-hook 'before-save-hook 'lsp-format-buffer nil t))))
|
||||
#+end_src
|
||||
|
||||
*** python
|
||||
*** COMMENT python
|
||||
#+begin_src emacs-lisp
|
||||
(use-package elpy
|
||||
:ensure t
|
||||
|
|
Loading…
Reference in New Issue