1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-23 20:20:53 -05:00

Compare commits

...

3 Commits

Author SHA1 Message Date
0445dc42ba
29 May 2022 17:04:43 2022-05-29 17:04:43 -04:00
7cc63fea46
29 May 2022 17:04:38 2022-05-29 17:04:38 -04:00
9447185be3 29 May 2022 15:31:02 2022-05-29 15:31:02 -04:00
4 changed files with 44 additions and 4 deletions

3
.cargo/config.toml Normal file
View File

@ -0,0 +1,3 @@
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-C", "link-arg=--ld-path=/usr/bin/mold"]

View File

@ -0,0 +1,12 @@
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service]
Type=simple
ExecStart=/usr/bin/emacs --fg-daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
Restart=on-failure
[Install]
WantedBy=default.target

View File

@ -150,7 +150,7 @@
(map! :leader
:desc "Switch buffer" "," #'+vertico/switch-workspace-buffer
:desc "Switch all buffers" ">" #'consult-buffer)
:desc "Switch all buffers" "<" #'consult-buffer)
(map! :leader
:desc "Search online" "/" #'my/counsel-search)
@ -301,7 +301,7 @@
(map! :leader
:prefix ("p" . "projects")
:desc "Switch project" "p" #'counsel-projectile-switch-project
:desc "Switch project" "p" #'my/projectile-switch-project
:desc "Add new project" "a" #'projectile-add-known-project
:desc "Remove project" "d" #'projectile-remove-known-project
@ -581,6 +581,16 @@ _Q_: Disconnect _sd_: Down stack frame _bh_: Set hit count
;; (setq projectile-project-search-path
;; '("~/Code"))
(defun my/projectile-switch-project ()
(interactive)
;; Prune projects which no longer exist
(dolist (project projectile-known-projects)
(unless (file-directory-p project)
(projectile-remove-known-project project)))
(call-interactively #'counsel-projectile-switch-project))
(setq lsp-ui-doc-show-with-mouse t)
(defun my/counsel-search ()
(interactive)
(unless (boundp 'my/kagi-found)

View File

@ -217,11 +217,12 @@ Unmap a bunch of the default keybindings.
(projectile-invalidate-cache nil)
(+ivy/projectile-find-file))
#+END_SRC
**** Buffers
#+BEGIN_SRC elisp
(map! :leader
:desc "Switch buffer" "," #'+vertico/switch-workspace-buffer
:desc "Switch all buffers" ">" #'consult-buffer)
:desc "Switch all buffers" "<" #'consult-buffer)
#+END_SRC
**** Search
@ -408,7 +409,7 @@ keybindings specific to =config.org=.
#+BEGIN_SRC elisp
(map! :leader
:prefix ("p" . "projects")
:desc "Switch project" "p" #'counsel-projectile-switch-project
:desc "Switch project" "p" #'my/projectile-switch-project
:desc "Add new project" "a" #'projectile-add-known-project
:desc "Remove project" "d" #'projectile-remove-known-project
@ -731,7 +732,21 @@ Setup: run =M-x dap-go-setup=
#+BEGIN_SRC elisp
;; (setq projectile-project-search-path
;; '("~/Code"))
(defun my/projectile-switch-project ()
(interactive)
;; Prune projects which no longer exist
(dolist (project projectile-known-projects)
(unless (file-directory-p project)
(projectile-remove-known-project project)))
(call-interactively #'counsel-projectile-switch-project))
#+END_SRC
** LSP
#+BEGIN_SRC elisp
(setq lsp-ui-doc-show-with-mouse t)
#+END_SRC
** Counsel Search
#+BEGIN_SRC elisp
(defun my/counsel-search ()