Vamsi
  • Member for 7 years, 4 months
  • Last seen more than 4 years ago
Add operating system clipboard to kill ring
Accepted answer
31 votes

You need to customize save-interprogram-paste-before-kill to t. This will push your clipboard onto the killring in case you kill something in emacs before pasting the clipboard. A related ...

View answer
Advantages of setting variables with setq instead of custom.el?
26 votes

One advantage of using setq instead of customize is readability. One is free to annotate each customization to one's liking which IMO improves readability. One can also group related customizations ...

View answer
How to widen helm buffer names in `helm-buffers-list`?
Accepted answer
25 votes

You should customize helm-buffer-max-length to an appropriate number. Default I believe is 20. If set to nil, helm will use the longest buffer name. You can access the customization setup by M-x ...

View answer
Key bindings specific to a buffer
Accepted answer
18 votes

For closure, here is an answer that expands upon my comment. I define a minor mode with the required keybinding and toggle it in the required buffer using file local variables. (define-minor-mode ...

View answer
How to call pdflatex under TeX-PDF-mode?
Accepted answer
14 votes

Just type latex instead of pdflatex at the C-c C-c prompt. TeX-PDF-mode sets the TeX-engine to pdflatex automatically. The command you are entering at the prompt is only representative of what you ...

View answer
Start two separate emacs daemons for console and GUI
Accepted answer
14 votes

Use emacs --daemon=your-server-name -l "custom-init-file" to start a new server and emacsclient -nw -s your-server-name to connect to it from the terminal itself. The section on Using Emacs as a ...

View answer
How to search the Emacs Lisp Reference Manual?
Accepted answer
12 votes

EDIT: I just found the wonderful M-x info-apropos which searches full text over all info documents and returns the relevant nodes. Seems this gem is relatively unknown. If you use helm package from ...

View answer
yasnippet: how to expand a snippet from a string and have the fields recognized?
Accepted answer
12 votes

SHORT SOLUTION If you do not mind an additional TAB keystroke, definining your snippet as below should work. [[${1:`(dan-xclipboard-link-p)`}][$0]] The embedded lisp returns the url from the ...

View answer
How do I use emacsclient to connect to a remote emacs instance?
12 votes

Probably not what you asked for but assuming you have ssh setup with X-forwarding, you could start emacsclient on the server and forward it to remote DISPLAY. (Disclaimer: code typed directly into ...

View answer
What options are there for writing better non-programming text in Emacs?
11 votes

Spin off of the original answer to the linked question. Grammar Check: I am not aware of any dedicated grammar parsers for emacs yet. I will mention writegood-mode available in MELPA which highlights ...

View answer
What options are there for doing spell-checking in emacs
10 votes

For general purpose spell-checking, there are quite a few popular alternatives ispell and friends: Built into emacs & typically called with ispell-buffer. Checks spelling only on demand. ...

View answer
How can I block a frame from being split?
Accepted answer
10 votes

You need to configure the 600-pound gorilla that is display-buffer-alist which determines how display-buffer chooses where to display a buffer. It makes display-buffer-reuse-frames obsolete in newer ...

View answer
Make Buffer List take focus?
9 votes

You can replace the command list-buffers which is run with C-x C-b to a function that does what you want. In this case buffer-menu-other-window opens the buffers list in another window with focus. ...

View answer
Recursively find all files from a folder containing a regexp in the filename, using helm
Accepted answer
9 votes

On systems that provide GNU find utility, you can use helm-find (by default bound to C-x c /) to get the desired behavior. Starting helm-find with a prefix argument C-u C-x c / prompts for the ...

View answer
What compilers are used during installation of a package?
8 votes

The compilation you refer to is usually called byte-compilation of emacs lisp. It generates a different and faster representation of functions for the emacs interpreter. Unlike compilation of C code ...

View answer
How to truncate buffer information in helm list
Accepted answer
6 votes

The relevant setting is helm-buffers-truncate-lines which truncates lines when non-nil. You can use M-x customize-variable helm-buffers-truncate-lines to toggle it.

View answer
Filter Helm buffers by mode in ibuffer
Accepted answer
6 votes

It is not a bug. helm.el does not provide any major mode for helm buffers. So they are infact in fundamental-mode. However it does set the variable mode-name to Helm which is what you are seeing in ...

View answer
What are the differences between autopair and smartparens?
6 votes

smartparens has a superset of the functionality provided by autopair. Apart from providing pair insertion (which is what autopair does) , it supports manipulating what it calls "hybrid sexps" or sexps ...

View answer
Make helm window the only window
Accepted answer
6 votes

The error you get is because point is in the minibuffer waiting for completion when you call with-current-buffer. Fortunately, helm provides helm-window to select the completion window. The following ...

View answer
Character encoding when copying some text from somewhere to Emacs and saving to a file
6 votes

When I copy the text from the source to the emacs buffer ... What you copy depends upon the application you are copying from. Some applications release UTF-8 encoded strings while others use ...

View answer
Handling text files with mixed encodings
Accepted answer
6 votes

1) How shall I avoid creating a text file with mixed encodings when copying its different parts from different sources into an editor such as emacs? Irrespective of the source, you can always set the ...

View answer
What should/shouldn't I do when keeping .emacs and .emacs.d in version control?
6 votes

I have the following things in my .hgignore emacs server file recentf file: File paths on one machine do not make sense on another elpa/melpa directory: Use init file to automatically install ...

View answer
How do I get my initial frame to be the desired size?
Accepted answer
5 votes

Since this is being caused by changing the default font/size during init, one can avoid this problem by setting the font via X resources Add to (creating if necessary) the file ~/.Xresources in the ...

View answer
Set up Emacs on Windows to start a single instance and open files in the existing instance
5 votes

Automatically starting a server if one is not already started I highly recommend setting an environment variable for ALTERNATE_EDITOR to runemacs.exe. This way you can always call emacsclient even if ...

View answer
How do I search Info for help on a given keyword or function?
5 votes

info-lookup-symbol bound by default to C-h S can search info indices to find the relevant node for symbol corresponding to point.

View answer
How can I find out exactly what my modeline is telling me?
4 votes

Since any tool will have to read mode-line-format, you cannot do better than examining it. The manual has an extensive section describing the format here including all the % constructs. Note that ...

View answer
Show breakpoints when debugging Matlab
Accepted answer
3 votes

Unless some thing has changed with newer versions of MatLab, short answer is you cannot (MaTLaB 2011b here). Eric Ludlam, maintainer of matlab-emacs, does say so here in the matlab-emacs mailing list. ...

View answer
Why does preview-latex not show some equations?
Accepted answer
3 votes

Auctex 11.86 has known issues with Ghostscript ver >=9.0. Either downgrading ghostscript or updating Auctex will fix the issue.

View answer
Is there a mode for viewing keystroke lossage in realtime?
3 votes

The lossage help buffer is not associated with a file on disk. Hence auto revert mode does not work. A pseudo realtime alternative can be using (open-dribble-file "FILE") which writes all keystrokes ...

View answer
See LaTeX code and math preview at the same time with preview-latex
2 votes

You might want to try WhizzyTeX mode that tries to compile latex code on the fly. It comprises of a minor mode for emacs along with a bash script which provides a preview in a separate dvi window. ...

View answer