Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5b958af9d | ||
|
|
678eeae113 | ||
|
|
e15c394602 |
+34
-27
@@ -129,6 +129,10 @@ Variables for directories, leader keys, etc.
|
|||||||
|
|
||||||
(defvar dot/hidpi (getenv "HIDPI")
|
(defvar dot/hidpi (getenv "HIDPI")
|
||||||
"Whether the primary screen is HiDPI.")
|
"Whether the primary screen is HiDPI.")
|
||||||
|
|
||||||
|
;; Create cache directory
|
||||||
|
(unless (file-directory-p dot-cache-dir)
|
||||||
|
(make-directory dot-cache-dir t))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Customizations
|
* Customizations
|
||||||
@@ -401,6 +405,7 @@ Setup =org-roam=.
|
|||||||
:hook (org-roam-backlinks-mode . dot/hook-disable-line-numbers)
|
:hook (org-roam-backlinks-mode . dot/hook-disable-line-numbers)
|
||||||
:hook (org-roam-backlinks-mode . dot/hook-disable-mode-line)
|
:hook (org-roam-backlinks-mode . dot/hook-disable-mode-line)
|
||||||
:config
|
:config
|
||||||
|
(setq org-image-actual-width nil)
|
||||||
(setq org-roam-completion-system 'default)
|
(setq org-roam-completion-system 'default)
|
||||||
(setq org-roam-db-location (expand-file-name "org-roam.db" dot-cache-dir))
|
(setq org-roam-db-location (expand-file-name "org-roam.db" dot-cache-dir))
|
||||||
(setq org-roam-directory (expand-file-name "./" org-directory))
|
(setq org-roam-directory (expand-file-name "./" org-directory))
|
||||||
@@ -541,6 +546,7 @@ On the fly syntax checking.
|
|||||||
latex-mode
|
latex-mode
|
||||||
org-mode
|
org-mode
|
||||||
php-mode
|
php-mode
|
||||||
|
sh-mode
|
||||||
shell-mode
|
shell-mode
|
||||||
shell-script-mode)
|
shell-script-mode)
|
||||||
. flycheck-mode)
|
. flycheck-mode)
|
||||||
@@ -572,7 +578,9 @@ Language Server Protocol.
|
|||||||
:hook
|
:hook
|
||||||
((c-mode ; clangd
|
((c-mode ; clangd
|
||||||
c++-mode ; clangd
|
c++-mode ; clangd
|
||||||
|
lua-mode ; lua-language-server
|
||||||
php-mode) ; nodejs-intelephense
|
php-mode) ; nodejs-intelephense
|
||||||
|
latex-mode) ; texlab
|
||||||
. lsp-deferred)
|
. lsp-deferred)
|
||||||
:config
|
:config
|
||||||
(setq lsp-auto-guess-root t)
|
(setq lsp-auto-guess-root t)
|
||||||
@@ -689,13 +697,15 @@ https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-sce
|
|||||||
*** PHP
|
*** PHP
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package php-mode
|
(use-package php-mode
|
||||||
:defer t
|
:defer t
|
||||||
:hook
|
:hook
|
||||||
(php-mode
|
(php-mode . (lambda ()
|
||||||
. (lambda () (progn
|
(setq indent-tabs-mode t)
|
||||||
(setq indent-tabs-mode t)
|
(setq lsp-ui-doc-enable t))))
|
||||||
(setq lsp-ui-doc-enable t)))))
|
|
||||||
|
(use-package restclient
|
||||||
|
:defer t)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Prettify
|
*** Prettify
|
||||||
@@ -868,23 +878,20 @@ https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-sce
|
|||||||
Set file paths for built-in features like: auto-saves, backups, etc.
|
Set file paths for built-in features like: auto-saves, backups, etc.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(unless (file-directory-p dot-cache-dir)
|
;; Set Directory locations
|
||||||
(make-directory dot-cache-dir t))
|
(setq auto-save-list-file-prefix (concat dot-cache-dir "/auto-save/"))
|
||||||
|
(setq auto-save-file-name-transforms `((".*" ,auto-save-list-file-prefix t)))
|
||||||
|
(setq backup-directory-alist `((".*" . ,(concat dot-cache-dir "/backup/"))))
|
||||||
|
(setq eshell-directory-name (concat dot-cache-dir "/eshell/"))
|
||||||
|
(setq org-id-locations-file (concat dot-cache-dir "/org-id-locations"))
|
||||||
|
(setq tramp-auto-save-directory (concat dot-cache-dir "/tramp-auto-save/"))
|
||||||
|
(setq tramp-backup-directory-alist backup-directory-alist)
|
||||||
|
(setq url-configuration-directory (concat dot-cache-dir "/url/"))
|
||||||
|
|
||||||
;; Set Directory locations
|
;; Set file locations
|
||||||
(setq auto-save-list-file-prefix (concat dot-cache-dir "/auto-save/"))
|
(setq bookmark-default-file (concat dot-etc-dir "/bookmarks"))
|
||||||
(setq auto-save-file-name-transforms `((".*" ,auto-save-list-file-prefix t)))
|
(setq nsm-settings-file (concat dot-cache-dir "/network-security.data"))
|
||||||
(setq backup-directory-alist `((".*" . ,(concat dot-cache-dir "/backup/"))))
|
(setq tramp-persistency-file-name (concat dot-cache-dir "/tramp"))
|
||||||
(setq eshell-directory-name (concat dot-cache-dir "/eshell/"))
|
|
||||||
(setq org-id-locations-file (concat dot-cache-dir "/org-id-locations"))
|
|
||||||
(setq tramp-auto-save-directory (concat dot-cache-dir "/tramp-auto-save/"))
|
|
||||||
(setq tramp-backup-directory-alist backup-directory-alist)
|
|
||||||
(setq url-configuration-directory (concat dot-cache-dir "/url/"))
|
|
||||||
|
|
||||||
;; Set file locations
|
|
||||||
(setq bookmark-default-file (concat dot-etc-dir "/bookmarks"))
|
|
||||||
(setq nsm-settings-file (concat dot-cache-dir "/network-security.data"))
|
|
||||||
(setq tramp-persistency-file-name (concat dot-cache-dir "/tramp"))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** File Backups Versioning
|
** File Backups Versioning
|
||||||
@@ -1169,7 +1176,7 @@ Functions that only use built-in Emacs functionality.
|
|||||||
(princ "Current buffer isn't a file")))
|
(princ "Current buffer isn't a file")))
|
||||||
|
|
||||||
(defun dot/toggle-fringe (&optional arg)
|
(defun dot/toggle-fringe (&optional arg)
|
||||||
"Toggle left-only fringe."
|
"Toggle left-only fringe, or set state with ARG."
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (or (and (eq fringe-mode 0) (eq arg nil))
|
(if (or (and (eq fringe-mode 0) (eq arg nil))
|
||||||
(eq arg 1))
|
(eq arg 1))
|
||||||
@@ -1717,12 +1724,12 @@ Set keybinds to functionality of installed packages.
|
|||||||
)
|
)
|
||||||
|
|
||||||
(general-def evil-insert-state-map
|
(general-def evil-insert-state-map
|
||||||
"<backtab>" #'dot/evil-insert-shift-left ;; <<
|
"<backtab>" #'dot/evil-insert-shift-left ; <<
|
||||||
)
|
)
|
||||||
|
|
||||||
(general-def evil-visual-state-map
|
(general-def evil-visual-state-map
|
||||||
"<" #'dot/evil-visual-shift-left ;; <gv
|
"<" #'dot/evil-visual-shift-left ; <gv
|
||||||
">" #'dot/evil-visual-shift-right ;; >gv
|
">" #'dot/evil-visual-shift-right ; >gv
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Custom (M-x customize)
|
;; Custom (M-x customize)
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ linux-headers
|
|||||||
linux-lts
|
linux-lts
|
||||||
linux-lts-headers
|
linux-lts-headers
|
||||||
llvm
|
llvm
|
||||||
|
lua-language-server-git
|
||||||
lvm2
|
lvm2
|
||||||
lxappearance
|
lxappearance
|
||||||
maim
|
maim
|
||||||
@@ -140,6 +141,7 @@ streamlink
|
|||||||
sxhkd
|
sxhkd
|
||||||
synergy2-bin
|
synergy2-bin
|
||||||
sysfsutils
|
sysfsutils
|
||||||
|
texlab
|
||||||
texlive-bibtexextra
|
texlive-bibtexextra
|
||||||
texlive-core
|
texlive-core
|
||||||
texlive-fontsextra
|
texlive-fontsextra
|
||||||
|
|||||||
Reference in New Issue
Block a user