Browse Source

Add shortcut to deadgrep and turn off prettycode #emacs

Colin Powell 5 năm trước cách đây
mục cha
commit
b0e1d35580
3 tập tin đã thay đổi với 22 bổ sung12 xóa
  1. 2 3
      emacs/.config/doom/config.el
  2. 19 5
      emacs/.config/doom/init.el
  3. 1 4
      emacs/.config/doom/packages.el

+ 2 - 3
emacs/.config/doom/config.el

@@ -88,7 +88,8 @@
       (:prefix "b"
         :desc "Black format buffer"     "f" #'blacken-buffer)
       (:prefix "/"
-        :desc "Search the web"          "w" #'web-search)
+        :desc "Search the web"          "w" #'web-search
+        :desc "Search all the things"   "g" #'deadgrep)
       (:prefix "y"
         :desc "Yank pop!"               "p" #'counsel-yank-pop
         :desc "Git yank link"           "g" #'git-link))
@@ -99,8 +100,6 @@
         web-search-providers)
   (setq web-search-default-provider "Searx"))
 
-(setq beacon-mode 1)
-
 (def-package! org-alert
   :commands (org-alert-enable))
 

+ 19 - 5
emacs/.config/doom/init.el

@@ -15,8 +15,8 @@
        deft              ; notational velocity for Emacs
        doom              ; what makes DOOM look the way it does
        doom-dashboard    ; a nifty splash screen for Emacs
-       ;;doom-quit         ; DOOM quit-message prompts when you quit Emacs
-       fill-column       ; a `fill-column' indicator
+       doom-quit         ; DOOM quit-message prompts when you quit Emacs
+       ;;fill-column       ; a `fill-column' indicator
        hl-todo           ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
        ;;hydra
        ;;indent-guides     ; highlighted indent columns
@@ -27,7 +27,7 @@
        (popup            ; tame sudden yet inevitable temporary windows
         +all             ; catch all popups that start with an asterix
         +defaults)       ; default popup rules
-       pretty-code       ; replace bits of code with pretty symbols
+       ;;(pretty-code +fira)       ; replace bits of code with pretty symbols
        ;;tabbar            ; FIXME an (incomplete) tab bar for Emacs
        ;;treemacs          ; a project drawer, like neotree but cooler
        unicode           ; extended unicode support for various languages
@@ -49,7 +49,7 @@
        snippets          ; my elves. They type so I don't have to
 
        :emacs
-       (dired +icons)
+       (dired +icons +ranger)
        electric          ; smarter, keyword-based electric-indent
        vc                ; version-control and Emacs, sitting in a tree
 
@@ -67,7 +67,7 @@
        ;;editorconfig      ; let someone else argue about tabs vs spaces
        ;;ein               ; tame Jupyter notebooks with emacs
        eval              ; run code, run (also, repls)
-       flycheck          ; tasing you for every semicolon you forget
+       (flycheck +childframe)          ; tasing you for every semicolon you forget
        flyspell          ; tasing you for misspelling mispelling
        gist              ; interacting with github gists
        (lookup           ; helps you navigate your code and documentation
@@ -167,3 +167,17 @@
        ;; provides a Spacemacs-inspired keybinding scheme and a smartparens
        ;; config. Use it as a reference for your own modules.
        (default +bindings +smartparens))
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(custom-safe-themes
+   (quote
+    ("ff829b1ac22bbb7cee5274391bc5c9b3ddb478e0ca0b94d97e23e8ae1a3f0c3e" "fa477d10f10aa808a2d8165a4f7e6cee1ab7f902b6853fbee911a9e27cf346bc" "030346c2470ddfdaca479610c56a9c2aa3e93d5de3a9696f335fd46417d8d3e4" "886fe9a7e4f5194f1c9b1438955a9776ff849f9e2f2bbb4fa7ed8879cdca0631" "7d4340a89c1f576d1b5dec57635ab93cdc006524bda486b66d01a6f70cffb08e" "ab9456aaeab81ba46a815c00930345ada223e1e7c7ab839659b382b52437b9ea" default))))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )

+ 1 - 4
emacs/.config/doom/packages.el

@@ -39,14 +39,11 @@
 
 ;; handy tools
 (package! git-link)
-(package! restclient)
 (package! atomic-chrome)
 (package! auth-source-pass)
 (package! ivy-todo)
 (package! ivy-explorer)
 (package! ivy-lobsters)
-(package! dumb-jump)
-(package! beacon)
 (package! web-search)
 (package! mpdel)
 (package! ivy-mpdel)
@@ -56,10 +53,10 @@
 (package! emojify)
 (package! deadgrep)
 (package! kaolin-themes)
+(package! magit-circleci)
 
 ;; modes!
 (package! terraform-mode)
-(package! plantuml-mode)
 
 ;; themes
 (package! nimbus-theme)