How to change DBeaver autocompletion key? - dbeaver

Is there a way to change the auto-complete key from return to tab?
I don't see it under the "auto-complete" settings, and I'm not finding anything promising under the "keys" setting either.

Related

Custom keymapping in VsCodium

I recently changed my laptop's motherboard, and strangely, one of my keyboard keys changed its behavior (from the ?/° key to right control - I'm using an ABNT2 keyboard). I tried to remap the key with SharpKeys, but unfortunately, that didn't work (I didn't find the key and don't know the code related to that key).
Anyway, although I didn't manage to make it, I would like to at least add a keymap in VsCodium to remap this key, is it possible?

How to enable indentation on Emacs in web-mode?

I'm currently using GNU Emacs 24.3.1 with web-mode enabled. Everything works just fine but Tab key doesn't work like the way it used to. Indentation feature of web-mode also doesn't work perfectly. How can I configure my Emacs to enable Tab key work it just like before?
I am the author of web-mode.
Could give examples of indentation issues ?
Moreover "Tab key doesn't work like the way it used to" does not mean anything. Could you elaborate ?

How do you find out which mode changed a keybinding in emacs?

I found out when I use gud-gdb, it overrides one of my keybindings. I would like to check which mode changed the keybinding (I know it's probably gud-gdb, but I would still like to know how to check this). I know about C-h k, but is it possible to check which mode set a keybinding?
I use C-h+m, which runs describe-mode. That lists all the keybinds associated with each mode that is currently active. The keybinding that is getting clobbered will likely be there.
In general, when assigning keys (either as a user or as a mode author) it's best to follow the Emacs key binding conventions.

Autocompletion from the keyboard in Emacs CEDET/semantic

Looking a the different methods for completion in CEDET semantic (fresh version from the Bazaar repository), I see I have the following options (keyboard bindings as suggested by Alex Ott in his config file)
C-c ? (semantic-ia-complete-symbol)
C-return (semantic-ia-complete-symbol-menu)
C-c , l (semantic-analyze-possible-completions)
However, none of them seem to give me the option to choose between the possible completions conveniently using the keyboard.
For example, (semantic-ia-complete-symbol-menu) opens a menu where I can choose between the different options, but as far as I can tell it requires me to use the mouse (I tried C-n, C-p, M-n, M-p to navigate the menu with no success).
On the other hand (semantic-ia-complete-symbol) opens another buffer with the options. I can also use the mouse to choose the desired autocompletion, but I would like to use the keyboard instead.
Also, in previous versions of CEDET, there was a variable (semantic-complete-inline-analyzer-displayor-class) that allowed me to choose between several options for autocompletion (e.g. (semantic-displayor-ghost), or a more elegant overlay as a tooltip), but this variable does not seem to exist anymore.
In case it matters, I work mostly with C++ files.
Update:
The only method that seems to allow me to cycle through autocompletions is C-c , space (semantic-complete-analyze-inline), where I can use TAB to autocomplete, but it doesn't show a menu of possible autocompletions that I can choose from.
In new versions of CEDET it's recommended to use auto-complete or similar packages. You can add ac-semantic to ac-sources, and then auto-complete will use Semantic as source of data for completions. The new version of Emacs/CEDET articles, mentions this setup & shows necessary code. Please try it

How to change the meta key in Emacs?

I've just started to put in the time to get to learn emacs. By default my meta key is bound to Esc, and I'm finding that really inconvenient. I read somewhere however that it's not a good idea to change the binding to Alt. Is that true? If not, how could I go about doing that?
It's bound to Alt by default for me, and I have no problems with that. Are you on a Mac perhaps? There it is bound to one of the other keys like option.
If you are on a mac, the way to change the key will probably vary based on which version of Emacs you're using--e.g., I think changing it in the terminal would be different than changing it on one of the windowed varieties.
Another thing to try: http://www.jwz.org/xkeycaps/
Look through the keyboard layout with this and see if any key is assigned to Meta. If not, try assigning it; otherwise try changing it. I haven't actually tried this, but it looks promising.
If you are using a Mac, you can follow the directions from here:
"If you do not want to use the Esc key, you can specify a key to use as Meta. To specify a Meta key, select the Emulation tab of the Editor Preferences dialog."
You can then select to use Alt or Command as your Meta key.
I'm guessing that you're on Mac, because I had the same problem. This is how I fixed it:
Open Terminal
Open up the preferences
Open up the "Profiles" tab and choose the "Keyboard" tab with your current profile selected
Below the long scroll box are a couple check boxes. Check "Use Option as Meta key."
I'm using OS X 10.11.5, so I don't know about older versions of Terminal. I imagine that it would be similar.
For me, on my mac, it was bound to Alt by default, but I found it anoying because Alt is used for some special characters on Mac.
I added these lines on my .emacs
(setq mac-function-modifier 'meta)
(setq mac-option-modifier nil)
Thus in your case, you would have to add this in your .emacs (I tried this solution, and it worked for me)
(setq mac-option-modifier 'meta) ; set alt-key to meta
(setq mac-escape-modifier nil) ; set esc-key to nil
I had to do this for emacs while remotely connected to my raspberry pi.
Go to terminal.
type:
xmodmap -e "keysym Alt_L = Meta_L Alt_L"
This was suggested in xmodmap's manual
man xmodmap
Hope that helps :) I'm pretty new to this though so someone else may want to comment.