Bankrupt: Few fixes, adding restclient
This commit is contained in:
parent
4965186e4e
commit
d7d4eaed09
@ -120,6 +120,8 @@ literate file.
|
|||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||||
|
(load custom-file t)
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
This avoids those annoying *#backup#* files that get added and eventually slow down loading the file again.
|
This avoids those annoying *#backup#* files that get added and eventually slow down loading the file again.
|
||||||
@ -194,8 +196,8 @@ Setup other stuff
|
|||||||
|
|
||||||
(straight-use-package 'doom-themes)
|
(straight-use-package 'doom-themes)
|
||||||
(setq custom-safe-themes t)
|
(setq custom-safe-themes t)
|
||||||
(load-theme 'doom-vibrant t)
|
;; (load-theme 'doom-vibrant t)
|
||||||
;; (load-theme 'doom-flatwhite t)
|
(load-theme 'doom-one-light t)
|
||||||
|
|
||||||
(straight-use-package 'ligature)
|
(straight-use-package 'ligature)
|
||||||
(global-ligature-mode)
|
(global-ligature-mode)
|
||||||
@ -219,7 +221,6 @@ Setup other stuff
|
|||||||
(set-default 'truncate-lines nil)
|
(set-default 'truncate-lines nil)
|
||||||
(set-default 'truncate-partial-width-windows nil)
|
(set-default 'truncate-partial-width-windows nil)
|
||||||
|
|
||||||
|
|
||||||
(add-hook 'before-save-hook 'whitespace-cleanup)
|
(add-hook 'before-save-hook 'whitespace-cleanup)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -235,10 +236,12 @@ Setup other stuff
|
|||||||
(setq org-edit-src-content-indentation 0)))
|
(setq org-edit-src-content-indentation 0)))
|
||||||
(add-hook 'org-mode-hook (defun joe/org-hook ()
|
(add-hook 'org-mode-hook (defun joe/org-hook ()
|
||||||
(org-bullets-mode)
|
(org-bullets-mode)
|
||||||
(org-indent-mode))
|
(org-indent-mode)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** VEMCO (Vertico Embark Marginalia Consult Orderless)
|
** VEMCO (Vertico Embark Marginalia Consult Orderless)
|
||||||
|
Vertico Embark Marginalia Consult Orderless
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(straight-use-package '(vertico :files (:defaults "extensions/*") :includes (vertico-directory)))
|
(straight-use-package '(vertico :files (:defaults "extensions/*") :includes (vertico-directory)))
|
||||||
;; :bind (:map vertico-map
|
;; :bind (:map vertico-map
|
||||||
@ -282,7 +285,7 @@ Setup other stuff
|
|||||||
(add-to-list 'dirvish-preview-dispatchers 'exa)
|
(add-to-list 'dirvish-preview-dispatchers 'exa)
|
||||||
(setq dired-listing-switches "-l --almost-all --human-readable --time-style=long-iso --group-directories-first --no-group")
|
(setq dired-listing-switches "-l --almost-all --human-readable --time-style=long-iso --group-directories-first --no-group")
|
||||||
(setq dirvish-preview-dispatchers (cl-substitute 'pdf-preface 'pdf dirvish-preview-dispatchers))
|
(setq dirvish-preview-dispatchers (cl-substitute 'pdf-preface 'pdf dirvish-preview-dispatchers))
|
||||||
|
(define-key global-map (kbd "M--") #'dirvish)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Terminals/Shells
|
** Terminals/Shells
|
||||||
@ -292,7 +295,9 @@ Setup other stuff
|
|||||||
(setq vterm-timer-delay 0.01)
|
(setq vterm-timer-delay 0.01)
|
||||||
(setq vterm-buffer-name-string "VTerm - %s")
|
(setq vterm-buffer-name-string "VTerm - %s")
|
||||||
(setq vterm-max-scrollback 100000)
|
(setq vterm-max-scrollback 100000)
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Undo Tree
|
** Undo Tree
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(straight-use-package 'undo-tree)
|
(straight-use-package 'undo-tree)
|
||||||
@ -301,15 +306,17 @@ Setup other stuff
|
|||||||
(setq undo-tree-visualizer-diff t)
|
(setq undo-tree-visualizer-diff t)
|
||||||
(setq undo-tree-history-directory-alist `(("." . ,(expand-file-name "undo" user-emacs-directory))))
|
(setq undo-tree-history-directory-alist `(("." . ,(expand-file-name "undo" user-emacs-directory))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Which Key
|
** Which Key
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(straight-use-package 'which-key)
|
(straight-use-package 'which-key)
|
||||||
(setq which-key-idle-delay 0.3)
|
(setq which-key-idle-delay 0.3)
|
||||||
(which-key-mode)
|
(which-key-mode)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Text Editor
|
** Text Editor
|
||||||
|
|
||||||
Emacs is an amazing operating system, if only it had a good text editor...
|
Emacs is an great operating system, if only it had a good text editor...
|
||||||
|
|
||||||
*** Hydra
|
*** Hydra
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
@ -327,6 +334,7 @@ Emacs is an amazing operating system, if only it had a good text editor...
|
|||||||
("e" View-scroll-line-backward "line up")
|
("e" View-scroll-line-backward "line up")
|
||||||
)
|
)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Avy
|
*** Avy
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(straight-use-package 'avy)
|
(straight-use-package 'avy)
|
||||||
@ -341,6 +349,7 @@ Emacs is an amazing operating system, if only it had a good text editor...
|
|||||||
(define-key global-map (kbd "M-g )") 'avy-goto-close-paren)
|
(define-key global-map (kbd "M-g )") 'avy-goto-close-paren)
|
||||||
(define-key global-map (kbd "M-g P") 'avy-pop-mark)
|
(define-key global-map (kbd "M-g P") 'avy-pop-mark)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Multiple Cursors
|
*** Multiple Cursors
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(straight-use-package 'multiple-cursors)
|
(straight-use-package 'multiple-cursors)
|
||||||
@ -439,7 +448,6 @@ Emacs is an amazing operating system, if only it had a good text editor...
|
|||||||
(meow-global-mode t)
|
(meow-global-mode t)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
||||||
*** Boon
|
*** Boon
|
||||||
#+begin_src emacs-lisp :tangle no
|
#+begin_src emacs-lisp :tangle no
|
||||||
(straight-use-package 'boon)
|
(straight-use-package 'boon)
|
||||||
@ -494,6 +502,11 @@ The best git porcelain/client I've ever used
|
|||||||
(straight-use-package 'magit)
|
(straight-use-package 'magit)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Restclient
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(straight-use-package 'restclient)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** Finish up
|
** Finish up
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -177,15 +177,17 @@ all of the evil keybindings in buffers like magit, without compromises."
|
|||||||
(require 'dirvish)
|
(require 'dirvish)
|
||||||
(setq delete-by-moving-to-trash t)
|
(setq delete-by-moving-to-trash t)
|
||||||
(setq dired-dwim-target t)
|
(setq dired-dwim-target t)
|
||||||
|
(setq dirvish-override-dired-mode t)
|
||||||
(setq dirvish-preview-dispatchers (cl-substitute 'pdf-preface 'pdf dirvish-preview-dispatchers))
|
(setq dirvish-preview-dispatchers (cl-substitute 'pdf-preface 'pdf dirvish-preview-dispatchers))
|
||||||
(dirvish-define-preview exa (file)
|
(dirvish-define-preview exa (file)
|
||||||
"Use `exa' to generate directory preview."
|
"Use `exa' to generate directory preview."
|
||||||
:require ("exa") ; tell Dirvish to check if we have the executable
|
:require ("exa") ; tell Dirvish to check if we have the executable
|
||||||
(when (file-directory-p file) ; we only interest in directories here
|
(when (file-directory-p file) ; we only interest in directories here
|
||||||
`(shell . ("exa" "--color=always" "-al" ,file)))) ; use the command output as preview
|
`(shell . ("exa" "--color=always" "-al" "--group-directories-first" ,file)))) ; use the command output as preview
|
||||||
(setq dired-listing-switches "-l --almost-all --human-readable --time-style=long-iso --group-directories-first --no-group")
|
(setq dired-listing-switches "-l --almost-all --human-readable --time-style=long-iso --group-directories-first --no-group")
|
||||||
(add-to-list 'dirvish-preview-dispatchers 'exa)
|
(add-to-list 'dirvish-preview-dispatchers 'exa)
|
||||||
(evil-define-key 'normal dirvish-mode-map (kbd "q") 'dirvish-quit)
|
(evil-define-key 'normal dirvish-mode-map (kbd "q") 'dirvish-quit)
|
||||||
|
(evil-define-key 'normal 'global (kbd "-") 'dirvish)
|
||||||
|
|
||||||
(defun joe/dired-open-file ()
|
(defun joe/dired-open-file ()
|
||||||
"In dired, open the file named on this line."
|
"In dired, open the file named on this line."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user