For example, I want to bind M . to godef-jump, how can I do this for only the go layer?
Try spacemacs/set-leader-keys-for-major-mode. Just set the keybinding for go-mode
Related
I am trying to configure RefTeX/AUCTeX so that the smart label-creation, invoked with C-c ( has the following sets of behaviors:
for \section-type labels, i.e., for \section, \subsection, etc. generate a label of the form: \label{sec:[[derived-from-section-name]]} where what follows the colon is derived from the section name.
for \items in an enumerate environment, generate a label of the form: \label{item:[[number]]}, where the number is automatically incremented from what has gone before. i.e., the first enumerate item I generate a label for gets \label{item:1}, the next one \label{item:2}, and so on.
This was standard behavior of my reftex implementation when I was using aquamacs, but I haven't been able to duplicate this in standard emacs.
Any help would be appreciated.
Try setting reftex-plug-into-AUCTeX to t like I do in my config.
Using the config linked to above the behavior is exactly how you described it. I'm on Linux, Emacs version 25.2.2, AUCTeX version 12.1.2, RefTeX version 25.2.2.
This is probably simple.
But I've couldn't find a way to disable the current parentheses highlight on Spacemacs
At first, I thought this could be fixed by toggling the (show-paren-mode), but it doesn't show any effect.
In your config you can set dotspacemacs-highlight-delimiters, here is its documentation:
dotspacemacs-highlight-delimiters is a variable defined in
‘core-dotspacemacs.el’. Its value is ‘all’
Documentation: Select a scope to highlight delimiters. Possible values
are ‘any’, ‘current’, ‘all’ or ‘nil’. Default is ‘all’ (highlight any
scope and emphasize the current one.
I want to modify the existing tool tip text.I have following lines in plugin.xml
<command commandId="org.eclipse.ui.edit.paste"
id="org.eclipse.ui.edit.paste" tooltip="%pasteAction.TIP">
in plugin.properties
pasteAction.TIP=Paste
Existing tool tip appears like following
Paste(Ctrl+V)
I want to modify this existing tool tip to appears like following
Paste(Ctrl+V)
Paste a reference to the object
I am getting three problems to achieve this use case.
(Ctrl+V) added automatically at the end of tool tip text. which is not desired. It should appear where it is expected.
don't know how to Bold the particular string e.g. (Ctrl+V)
don't know how to make tool tip text multiline
we can use \n for multiline. it works but still looking for other two questions.
Thanks
For controls that you create you can use the org.eclipse.jface.window.ToolTip class to define custom tool tips.
For controls that Eclipse creates I don't know of any way to change the position of the key binding text or the font (bold).
I want Speedbar to display outlines (list of variables, functions and other "interesting" objects") I have in source files it doesn't understand yet. I have code to generate TAGS for the sources in question, where should I look for a hook / configuration to do that?
You can use speedbar-add-supported-extension function to add new files that speedbar doesn't understand by default.
From speedbar.el:
You should use the function 'speedbar-add-supported-extension' to add a new extension at
runtime, or use the configuration dialog to set it in your .emacs file.
If you add an extension to this list, and it does not appear, you may
need to also modify 'completion-ignored-extension' which will also help
file completion.
In addition to that, you may want to teach speedbar how to parse the tags for this new file using speedbar-fetch-etags-parse-list. For a C/C++ style language with a file extension .foo you might want to do something like this.
(speedbar-add-supported-extension ".foo")
(add-to-list 'speedbar-fetch-etags-parse-list
'("\\.foo" . speedbar-parse-c-or-c++tag))
The Emacs extension markerpen.el (link text) allows you to hightlight arbitrary regions in your buffer. With this extension, the added highlighting is lost once you kill the buffer though. However, it would be nice to be able to highlight arbitrary regions of a file in a "persistent" way -- in the sense that the added hightlighting is not lost after I close the file.
Do you know of any way I could have such a "persistent" highlighting?
Thanks very much.
Try enriched-mode.
Yes, such a feature does exist. And you can add the highlighting in any number of ways, including sweeping the mouse marker pen-style.
http://www.emacswiki.org/emacs/HighLight#PermanentHighlighting
At the moment, no feature like this exists, so you'd need to create an extension to markerpen.el which created a metafile containing highlight points in each file that had them. (I'd suggest creating a metafile for each file)
When setting marks, each time one is added to markerpen-overlays you could update the related metafile.
When you load any file, you could check for the existence of the metafile (or when you invoked the markerpen library)
Then load the metafile and create the marks.