This is the emacs init file from https://github.com/purcell/emacs.d/, does anyone knows what's the package make the highlight of recent changes in left margin? Thanks.
Also, this emacs profile has a function, when the cursor stays on a word (goto-char in the figure) for around 3 seconds, all of its other occurrence in the buffer are highlighted as well. Please also let me know what's the packages achieving that.
Appreciate the help.
I can't be sure, but these are likely matches since I found both on the list of packages that are installed with the config (elpa folder).
The highlight after 3 seconds is a feature provided by the highlight-symbol package, available through Melpa. You can customise the amount of time it requires to highlight the symbol with the highlight-symbol-idle-delay variable.
The other is diff-hl, which doesn't highlight recently changes, rather it highlight lines that are uncommited, if the file is under a particular version system (git, most likely). Also available on melpa
Most likely it is the diff-hl mode. The mode highlights uncommitted changes in the current file on the margin or the fringe. It is included in the config you linked to: https://github.com/purcell/emacs.d/blob/master/lisp/init-vc.el.
Related
I have recently installed spacemacs on my mac, and want to figure out a way to highlight the cursor position, the line I am on is always highlighted in green, but I often am unable to find the cursor on that line.
I also want to figure out how to optimize spacemacs. In the beginning there was an option when installing to install all packages, or a light weight mode. I want to see if I can switch to the light weight mode to improve the performance
Here's what you can do :-
Get the beacon package. It makes it so that you can never lose your cursor position :) You also have the option to blink the cursor position if you ever lose it. Check their github page for more info
2. The best way to optimise emacs is using use-package for managing all the packages configuration. use-package helps in reducing loading time of emacs and tiding up your configuration.
I just updated to the most recent version of Dired+ and Emacs (from a nightly build) and, for some reason when I open Dired on any path, I don't see details (e.g. file size, permissions, size, etc.)
Has anything changed on Dired+ in the latest version? How do I restore the details view? Here is a snapshot of what I get now:
Taken from the package documentation.
Starting with Emacs 24.4 (I assume what you got in nightly), listing details are hidden by default.
Use ( anytime to toggle this hiding. You can use option
diredp-hide-details-initially-flag to change the default/initial
state. See also option diredp-hide-details-propagate-flag.
If you have an Emacs version older than 24.4, you can use library
dired-details+.el (plus dired-details.el) to get similar
behavior.
How to find it quickly:
M-x find-library enter dired+enter C-s details
You can just press C-( to toggle it;
I've been using a copy of emacs (in a Debian VM I ssh to with putty) at work for a couple of months now, and up until now everything has been working brilliantly... but this morning I'm trying to edit a file in shell-script-mode, and am seeing some weird behavior with text around the cursor.
Basically, when I type the following ( [ ] represents my cursor):
export DATABASE[]
After I've typed the first few characters of the variable name the export statement disappears and the variable name aligns to the left margin, and all I end up seeing is (with the cursor out in the wilderness):
DATABASE []
If I then hit CTRL-L, the screen refreshes, and I see the text as it should be displayed... until I start typing, and then the buffer start acting strangly again (characters disappearing, moving, cursor ending up in the wrong place, etc)
I've not, to my knowledge, added anything to my .emacs file since this last worked as I expect it to, so I'm at a loss as to what could be happening here. It doesn't seem specific to sh-mode either - I've tested a few other file types and observed similar strange behavior. Are there any emacs afficianados out there who might be able to point me in the right direction to figure out what's wrong here?
Thanks in advance
I'm not sure what to suggest, but this sounds awfully like an issue with the terminal: I suspect that Emacs redraws the current line whenever it changes and I guess it tries to do so incrementally. If something's got out of whack with your terminal, then it seems quite plausible that the current word would get written at the start of the line (all Emacs sent) and your cursor would get abandoned "out in the wilderness" :-)
Obviously, this is a new change. Since it doesn't sound like the sort of issue that would be caused by Elisp configurations in your .emacs, you should check whether you've recently upgraded one of
PuTTY
Emacs version
SSH version (unlikely...)
Then maybe the relevant tool will have something in the changelog (which maybe you can disable via a config?)
One thing you could check: you say this isn't just SH-mode. Is it "any mode with syntax highlighting"? Maybe Emacs just sends over the wire the text with the current colour?
I had a similar problem of disappearing text using PuTTY / Emacs / Remote AWS Ubuntu when running ABCL LISP in a shell window.
The solution was: I had changed my foreground and background font colors (essentially reversed) in PuTTY but had neglected to change the bold fonts, so they were disappearing into the background.
(load "~/.elisp/nxhtml/autostart.el")
(setq mumamo-chunk-coloring 'no-chunks-colored)
I currently have the above in my .emacs and the chunk coloring is still showing up. I have also tried disabling it through customize-option and then setting the state to "no chunk coloring" in mumamo-chunk-coloring. I'm using the latest emacs23 from cvs and have the most recent nxhtml release.
What is the correct way to disable the coloring of different major modes?
Bug. I forgot to add this possibility back when implementing chunks in chunks.
I have just corrected this in 1.88 (which is yet in beta).
Note that in the new version you will use a number for mumamo-chunk-coloring. Set this to 1 to avoid coloring main mode chunks etc.
BTW: Just happened to see this. If you want bugs to be corrected it is normally much better to report them in nXhtml bug database on Launchpad.
I have just installed cedet (CVS version) and I am now playing with in emacs and my C++ source code.
Regarding the auto complete, I can invoke the tool tip and the menu from their semantic-ia-complete-* commands.
Does anyone know how I can make the auto complete tip appear automatically without my having to invoke a command (semantic-ia-complete-tip)? Is this even possible?
From CEDET website:
Automatically starting inline completion in idle time
M-x global-semantic-idle-completions-mode
This is a minor mode which runs
semantic-complete-analyze-inline-idle
during idle time. Instead of trying to
complete the symbol immediately, it
will just display the possible
completions, and underline the current
symbol the cursor is on.
In practice this means that the possible completions will appear whenever you stop typing and the cursor is under a symbol where completions are possible.
To use it, just put
(global-semantic-idle-completions-mode)
to your .emacs after loading the CEDET.