Fork me on GitHub
#emacs
<
2017-04-25
>
qqq10:04:29

in emacs, is there a way to show all the kill buffer contents?

mgrbyte10:04:27

@qqq do you mean the list of buffers which kill-buffer prompts to kill?

qqq10:04:54

no; maybe I am using the wrong terms

qqq10:04:00

when I delete stuff, like delete word, delete region, delete line

qqq10:04:07

all the things I delte get stuffed into some ring right?

qqq10:04:18

I'd like to dedicate a buffer to dedicate to the contents of this ring

cmack17:04:46

There is also helm-show-kill-ring (I personally bind it to M-y). I’m sure ivy/counsel has something similar

richiardiandrea17:04:31

I have js2-mode on in my json files...unfortunately it seems that indent-line-function gets hijacked by js-mode

richiardiandrea17:04:04

is there a way to get around that? (`add-hook` does not work)

cmack21:04:54

@richiardiandrea interesting js2-indent-line is just an alias for js-indent-line. I can’t imagine that a (setf indent-line-function ... ) would not work in an add-hook though…

cmack21:04:59

separately, is there something js2-mode gives that json-mode doesn’t? (I know that wasn’t your question, but I tried js2-mode in a json buffer and there were false errors galore)

richiardiandrea21:04:04

well, i need to investigate why, maybe the problem is elsewhere...I am setting js2-base-offest in the hook but probably I need to set something else then

richiardiandrea21:04:54

@cmack I actually use json-mode AND js2-mode now, they play well together but my goal was to disable js2-mode in .json files

richiardiandrea21:04:12

they play together...until they don't 😄

cmack21:04:52

wait, both of those are major modes aren’t they?

richiardiandrea21:04:43

that is why something was not working correctly 😄

richiardiandrea22:04:07

so js2-mode in taking over...need to find how to disable it for .json files

richiardiandrea22:04:57

@cmack so now I am using json-mode and (setq js-indent-level 2) solved my formatting issues thanks!