Fork me on GitHub
#emacs
<
2019-04-24
>
plexus09:04:24

@doglooksgood the thing to google for is "Multiple Major Modes", there are a few packages around that try to do this, with varying levels of success.

benedek12:04:48

i have never tried myself but i think org mode can do something like this...

hkjels12:04:00

org-mode does some context-aware highlighting indeed

hkjels12:04:48

(setq org-src-fontify-natively t)

tianshu13:04:32

@plexus thanks, I'll check this repo

dmaiocchi21:04:42

hi all, i have a emacs nob question

dmaiocchi21:04:08

what do you use for searching the word under the cursor ?

dmaiocchi21:04:49

e.g

(defn create-rocket-msg-trigger []
  (t/build
i have the cursor on the function name and i want to go to next usage. is there a way? i'm currenlty using swiper for searching but I'm searching if there is such functionality

dpsutton21:04:09

check out loccur mode

dpsutton21:04:30

i use it constantly. will collapse the buffer down to only lines which match the term under point

👍 4
🚀 8
dmaiocchi21:04:33

sound promising cool ! thx

twillis22:04:35

just to throw in the spacemacs solution.... M-* (spacemacs/enter-ahs-forward) ;; search symbol under point current buffer M-m * (spacemacs/helm-project-smart-do-search-region-or-symbol) ;; search symbol under point project wide with silversearcher

Lu22:04:38

What do you guys use as a completion tool? I tried company but wasn’t super happy about it

theeternalpulse23:04:33

I use company, I just turn off the delay and manually trigger it with C-SPC. What don't you like about it?

Lu23:04:56

The delay is the most annoying thing! I’ll give it a second try by triggering it manually

theeternalpulse23:04:29

I agree, here's my setup

(use-package company
    :config
    (setq company-idle-delay nil)
    (define-key global-map (kbd "C-SPC") #'company-complete)
    (define-key company-active-map (kbd "<return>") nil)
    (define-key company-active-map (kbd "RET") nil)
    (define-key company-active-map (kbd "TAB") #'company-complete-selection))

👏 4
theeternalpulse23:04:13

this is my work machine, at home I have C-SPC as both the complete and complete-selection

theeternalpulse23:04:20

that way tab can stay the way it is

theeternalpulse23:04:41

it causes confusion when switching between my work and home machine, but it can be whatver is comfortable for you