Fork me on GitHub
#spacemacs
<
2021-08-11
>
West03:08:16

@drewverlee which one was it?

West05:08:29

I just figured out something super helpful for me! We most of us know how to set our fonts.

dotspacemacs-default-font '("FiraCode Nerd Font"
                                :size 24.0
                                :weight normal
                                :width normal)
What bothered me was that this would not affect Japanese text, or any other unicode text for that matter. This is what I had to do to make it work:
(defun dotspacemacs/user-config ()
  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  ;; Font for all unicode chars
  (when (member "HackGen35Nerd" (font-family-list))
    (set-fontset-font t 'unicode "HackGen35Nerd Console" nil 'prepend))
  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
)

prnc07:08:56

In spacemacs/helm-project-smart-do-search (i.e. SPC /) is there a way to narrow the search to files matching pattern/glob e.g. *.cljs files only (when using rg)? When using ag as the underlying grep-like binary you can pass a param e.g. -Gcljs for example so you can do a search like layout -Gcljs and get desired results back, can’t seem to find a way to do it with rg under spacemacs/helm-project-smart-do-search any ideas? 😉

prnc07:08:39

Or maybe is there a better way to perform this kind of project search?

prnc09:08:48

Yes! Thanks so much 🎉 I’ve tried the long version --glob and that didn’t seem to work, but -g does 🤷 😉

prnc09:08:20

Also, interesting, the “globbing” behaviour is different between ag and rg here, e.g. w/ rg you need to be explicit: -Gcljs (for ag) vs. -g*cljs (for rg)