I'm a vim user trying to feel at home in Emacs. I really like the different color for the null lines at the bottom I have in vim, like in this image:
I tried messing around with the set-face-background of Emacs but I haven't find an equivalent option for this.
How can I achieve this customization in Emacs?
You can use the whitespace-mode to highlight various invisible characters and boundaries. See also "Fringes" and "Displaying Boundaries" in Emacs Info.
Related
I've just installed Fedora 23 and I've encountered a problem I've never seen in many years of using Emacs.
Emacs won't allow me to highlight text. I noticed it first when trying to click-and-drag with the mouse, but then I tested it by setting the mark and moving the cursor - no highlighting.
The <drag-mouse-1> command description indicates that dragging should set a region and highlight text. Transient-mark-mode is enabled, and I'm running Emacs in its own (non-terminal) window. I can't find any other information about this. Any ideas?
Edit: On closer inspection, I can act on the region that I try to highlight as normal (cutting, copying, etc.). It seems like Emacs IS highlighting, it's just not SHOWING the highlighting. A less serious problem, but one I'd still like to fix and don't know how.
Sounds like the highlight color is the same as or similar to your background color. Try M-x list-faces-display and look at face region. That also provides you an entry point for changing any of the faces displayed - just click the face name to open Customize for the face.
I've seen number of times emacs screenshots where modline is in color like this one:
How can I do this in emacs?
See the Elisp manual, node Properties in Mode.
Mode-line constructs can be complex - or simple. At their simplest they are strings. And you can propertize strings, i.e., give them text properties, including properties such as face that provide visual effects such as foreground and background color.
You can try packages like powerline, smart-mode-line which do lot of customization to mode line and has some inbuilt themes.
You can get various themes from airline-themes
Here is a screenshot of powerline theme
How do we use text-only based modeline in emacs ?
I don't want a big button across the screen at the bootom of my emacs window.
Just a text line with all the contents would be good and minimal.
Similarly when I do a split screen, I don't want a scroll bar, just a "|" character
across the entire screen is enough. Is this possible ?
Doing (set-scroll-bar-mode nil) will remove the scrollbars (you can even use yascroll.el to use fringe-based scrollbars, less obtrusive than the widget based).
Regarding what you call "big button"... I think the modeline face you are using makes it look like a button (i.e., has a "beveled" border). You can change the face to look like a normal text face, with or without border, and the size you want. This is what I do. I think some themes (like solarized) do that, so you can test one of them to have a feeling of how that would work.
M-x customize-group RET mode-line-faces RET
To completely get rid of the 'button' appearance, remove the 'box' attribute from mode-line, mode-line-highlight, and mode-line-inactive.
I am running Emacs 23.3 on Windows XP. When Emacs is started, the mode line will assume one of these two appearances at random. Needless to say, I prefer the first one. How do I figure out what is going on and how do I make the first one stick?
The images don't show it, but the first one has a GUI type appearance. If I hover over the various bits of text with a mouse, e.g. Help then the text Help turns into a button with shadows etc.
The black mode line appears to be a text mode widget. The only thing that the mouse will change on it is the highlighting.
PS: Thanks JSON!
I vaguely remember this happening years ago depending on whether or not I started Emacs from Remote Desktop. Perhaps there's an issue with color depth?
See if anything has changed your settings to
(set-face-background 'modeline "#000000")
(set-face-foreground 'modeline "#FFFFFF")
(EDIT: Color codes corrected) in any of your .el files.
There is alllll kinds of information out there about emacs color schemes, font locks, etc but I am having trouble getting where I want to be. Basically I would like to know what are some of the best font faces to set in order to have a nice solid color theme which is a good cross language solution. I am ending up with lots of language syntax (parens, brackets, operators, etc) not highlighted in some places when I expect them to be.
Below are the faces I am currently setting:
font-lock-builtin-face
font-lock-comment-face
font-lock-comment-delimiter-face
font-lock-doc-face
font-lock-doc-string-face
font-lock-function-name
font-lock-keyword-face
font-lock-negation-char-face
font-lock-preprocessor-face
font-lock-string-face
font-lock-type-face
font-lock-variable-name-face
What if any major faces am I missing here?
Don't do it like this. Choose a colour-theme that looks "okay" and when you're doing some work and find something unsatisfactory, customise that face to suite your taste.
I once knew someone who actually did an xlsfonts and opened an xterm for each one to decide which one he wanted to use while coding. Not thing kind of way I'd like to spend my time. :)
zenburn is a beautiful color theme. I use the terminus font on debian.
anyhow, I give up trying to use best font in GUI system. I revert to Raster Font, use in DOS Prompt / if it is in Linux, a TTY. Now that is so simple :)
My main workstation is Windows. There is (off course) native Win32 GUI version of Emacs, but I prefer to run it in DOS Command Prompt, using I am using emacs -nw. Using a few trick (write app that draw black border around screen edges), a found it able to make an illusion that it is in a console mode.
I love console mode :)