Fork me on GitHub
#emacs
<
2016-03-23
>
pastafari06:03:36

Hi folks, I have a basic question. I’ve bound my tab key to company-indent-or-complete-common

pastafari06:03:44

This works in most buffers

pastafari06:03:07

However in Clojure buffers, the tab key gets bound to complete-symbol

pastafari06:03:23

I’m trying to figure out why this happens, but not sure how to proceed.

pastafari06:03:12

Is there a way to give priority to my keybindings over others?

pastafari06:03:51

Ok, I have made progress!

pastafari06:03:59

Clojurescript mode overrides the TAB key binding.

pastafari06:03:49

So I’ve hacked this by adding an override to clojure-mode-map, but would love to know the right way to solve this.

bozhidar07:03:44

clojurescript-mode certainly doesn't touch TAB

bozhidar07:03:11

as I matter of fact there's nothing related to completion in clojure-mode and modes derived from it like clojurescript-mode

bozhidar07:03:57

which version of clojure-mode are you using?

pastafari10:03:16

@bozhidar: v5.2.0, i’ve got to run now, will try to dig into this later. I reached that conclusion by C-h m which listed keybindings for Clojurescript mode.

bozhidar11:03:01

maybe this was bound somewhere in your config

bozhidar11:03:07

as it’s definitely not the default