All Questions
5,922
questions with no upvoted or accepted answers
0
votes
0
answers
113
views
Double-Mouse-1 doesn't do selection
When I do a double click, I don't see any selection.
Is there anything I need to enable to make it work?
Other mouse functionalities work fine.
See http://www.gnu.org/software/emacs/manual/html_node/...
0
votes
0
answers
74
views
Change keywords faces in AUCTeX
I want to change keywords colors of the AUCTeX package. I found the variable font-latex-built-in-keyword-classes that could help me.
If me assume I want to display the keyword "newpage" with the face ...
0
votes
0
answers
128
views
Emacs (-nw) version 24.4.1 adds escape code to the top of every file, when 24.3.1 doesn't
When I run 'emacs -nw --no-init abc' with emacs version 24.4.1, I always see the same escape codes inserted at the top of the file: "12;rgb:0000/0000/0000". When I run the same command on the same ...
0
votes
0
answers
152
views
How to load defuns automatically at repl start up?
I'm working through SICP and I'm getting tired of defining the square function for the thousandth time, so I'd like to load it (and some others) automatically when I start the repl.
I use Geiser, but ...
0
votes
0
answers
135
views
How can I apply a frame register (saved via desktop.el) to the current frame instead of opening a new frame?
I am using desktop.el and I saved a few frame configurations in my registers. But when I jump to a saved register (C-x r j), Emacs opens a new frame instead of applying that setting to the current ...
0
votes
0
answers
121
views
SOLVED Emacs + Dvorak: C-c C-k bug
If you type C-c C-k (to abort a capture process, for example), you get a C-c C-v instead. It's like for this particular shortcut combo, Emacs interprets the hard key codes instead of the Dvorak layout ...
0
votes
0
answers
190
views
lisp code not indenting after paredit slurping, etc
When I use smartparens-mode or paredit-mode to shift parens around (e.g. paredit-forward-slurp-sexp) the effected forms are not being indented appropriately. For example if I add a let and then slurp ...
0
votes
0
answers
81
views
web-mode comment function doesn't work well in php codes
In web-mode, when it comes to HTML file, press M-; will comment the selected region very well. But in PHP file, it does not work correctly, the following is the screenshot:
Any more config work ...
0
votes
0
answers
122
views
AUCTeX installation error in Windows
I have followed the instructions here, in a nutshell:
download/unpack AUCTeX in a directory for installation
download install cygwin
download/install Emacs (that was already done)
download/install ...
0
votes
0
answers
140
views
Simple align-regexp example
I'm trying to align
4000 1 2 4000 1 2
11 1 44 => 11 1 44
1 0000 999 1 0000 999
as described at http://emacswiki.org/emacs/...
0
votes
0
answers
234
views
Incorrect Line Spacing in (term-mode, ansi-term, eshell, shell) Output
The output of certain commands in multiple major modes (term-mode, ansi-term, shell, eshell) is incorrectly spaced (see images). This occurs for numerous commands and does not occur in other emulators ...
0
votes
0
answers
134
views
get/set package user-dir before installing org-mode
I have emacs 24.5.1 on Xubuntu 14.04. I want to install the latest version of the org package available in GNU ELPA (20150929). Following the advice on org-mode website, I launch emacs with the -q ...
0
votes
0
answers
117
views
scss-mode compile not reading config.rb
Just discovered scss-mode and it's concomitant compile-on-save (very cool). However, I keep getting errors because sass it is not reading ../config.rb.
I can find no variables in scss-mode nor params ...
0
votes
0
answers
142
views
Need help with a snippet
Can someone help me with this snippet? I found it here
# -*- mode: snippet -*-
# name: jsdoc comment
# key: doc
# --
/**
* $0
`(save-excursion
(let* ((pos-fun (re-search-forward "\\<function\\s-*(...
0
votes
0
answers
68
views
Determine if emacs knows the mode for a file
I'd like to add another system to set the major modes of file visiting buffers. To do so, I need to know if any of the existing major mode setting systems know how to set the mode, and do my thing ...
0
votes
0
answers
170
views
Always remember last compile-command?
How do I get Emacs to always remember the last compile-command? My compile-command (cc) in Emacs 24 settings is pure vanilla, no bells and whistles. I only changed the cc string itself ("python build....
0
votes
0
answers
52
views
Org Mode Headers Won't Export
I have headers at the top of the file that look like:
#+TITLE: A Good Explanation
That looks like all the examples I can find browsing various web pages.
When I go to export in either LaTeX or ...
0
votes
0
answers
77
views
Starting Emacs on OSX stuck
When lots of application running, emacs doesn't start. Icon appears on dock but application doesn't show up. If I quit some apps and retry to start emacs, it works flawlessly.
Is the any chance to ...
0
votes
0
answers
59
views
Extraneous output of org-mode inline source block results in org
Context:
M-x org-version => Org-mode version 8.3.1 (8.3.1-95-g1dbb25-elpaplus @ /Users/username-here/elisp/elpa/org-plus-contrib-20150831/)
Executing:
src_R[:results value]{sin(0)}
Yields:
{{{...
0
votes
0
answers
100
views
Stop Emacs from adding all subdirs to default-directory
I'm having trouble stopping Emacs from loading all packages in my default-directory. When I call c-h v load-packages I get a listing of all subdirectories inside my elpa directory, which I want to ...
0
votes
0
answers
944
views
Validity of RSI claims for Emacs users
If this is not a relevant place to post this, please let me know.
My common workflow is Vim+Tmux. Mostly i do Clojure coding. Just yesterday i've downloaded and tried Spacemacs, out of curiosity.
...
0
votes
0
answers
213
views
Is there a way for a display-buffer-base-action function to know the forthcoming major-mode?
I am writing a mode that implements a persistent horizontal window (very similar to the "persistence compile window" in ECB). While I did study the ECB code it is quite old and endeavored to work ...
0
votes
0
answers
137
views
Can't disable semantic wisent-python-default-setup on python-mode-hook
Here is the error when semantic by default add wisent-python-default-setup into hook python-mode-hook.
It's shown in minibuffer.
Makeing python-shell-interpreter-args local to Python Internal[ org-...
0
votes
1
answer
97
views
Emacs adding comment char when using auto-fill-wrap
I'm pretty new to emacs, so this might be a stupid question but
I have auto word wrap enabled like so:
(setq-default auto-fill-function 'do-auto-fill)
But when I try to use it in C files, It ...
0
votes
0
answers
121
views
Changing the definition of the paragraph
I would like to change the definition of the paragraph in such a way that every line to be considered as a paragraph. As I understand from the documentation, one should change the variables paragraph-...
0
votes
0
answers
147
views
How to add a key map in Emacs source code?
I found ESC-prefix and Control-X-prefix defined in keymap.c:
initial_define_key (global_map, 033, "ESC-prefix");
initial_define_key (global_map, Ctl ('X'), "Control-X-prefix");
But no matter what ...
0
votes
1
answer
216
views
how to detect selection in date mode?
I want to write a mode for ledger. The first thing I want to do is to be able to insert date stamps. There is a very nice mode in Emacs called calendar. I want to be able to select a date within it.
...
0
votes
0
answers
387
views
OS X: make Emacs frame the frontmost window-manager window, but not the "key window"
(progn (sleep-for 5) (x-focus-frame nil))
focuses the Emacs frame, but also makes it the "key window" (ie, when you type, the keypresses gets sent to this window, which may or may not be the ...
0
votes
0
answers
901
views
Avoid creating a new window
Since an emacs upgrade I made a long time ago (or was it when I changed my laptop, or when I changed my Ubuntu release? I can't remember), emacs keeps opening new windows whenever I click into a file ...
0
votes
0
answers
110
views
hippie - complete file name with shell environment variables
I use this code snippet taken from some forum to complete the file path at point on pressing, C-M-/.
(defun my-expand-file-name-at-point ()
"Use hippie-expand to expand the filename"
(interactive)...
0
votes
0
answers
216
views
tree-mode, view selected file preview in right side window
I am using tree-mode to see the folder contents in a tree like design.
It is working awesome. I would like to customize the enter key behaviour.
1) key press on a file node must show the file's ...
0
votes
0
answers
71
views
Why do I get a different file content when I'm opening it with different Emacs versions on Windows7
I'm opening the very same file with Emacs-24.5 and with Emacs-23.1. But the latter shows me what seems to be an older version of this file! Might this be a bug of in Emacs-23.1?
I updated the ...
0
votes
0
answers
88
views
Make Helm Projectile to show external sources
I'm pretty new to emacs (was using Vim), primarily using it for Ruby on Rails projects.
At my free time, I like to write some C code for STM32 micro-controllers.
Unlike RoR project, C project for ...
0
votes
0
answers
123
views
Recent buffers bar
Is there a solution to have last visited buffers in a single one-line bar?
That I can see my last, lets say, five buffers all the time and press M-1, M-2, .. to switch to them fast.
The TabBarMode ...
0
votes
0
answers
234
views
Tabs bar (for accessing windows/buffers) as a single, one-line bar
Is there a solution to create and manage window/buffer tabs on a single one-line tabs bar?
I tried Elscreen, but it creates an annoying bars all over the buffers.
0
votes
0
answers
164
views
Set default timing for reminders/warnings, without identical intervals
In what follows, I use the terms "warning" and "reminder" synonymously.
By default, I would like Org to visually warn me of upcoming appointments, at the following times:
15 minutes in advance;
1 ...
0
votes
0
answers
168
views
How can I make tags-search able to find created timestamps containing both date and time?
I have made a tags search to filter out todo's created today:
(setq org-agenda-custom-commands'(
("d" "todo's made today" tags "TODO=\"TODO\"+Created=\"<today>\"" (
(org-agenda-sorting-...
0
votes
0
answers
83
views
How can I get the major-mode name of buffer at the cursor in Helm
I would like to perform some commands after I open a file in helm. For instance, call imenu to get a list of headings of opened org-mode buffer. But for some buffers, like message, it is not necessary ...
0
votes
0
answers
131
views
Python IOError whenever I eval a buffer or region
New to Python in Emacs. Whenever I try to do an eval-buffer on this server, I get
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 2] ...
0
votes
0
answers
226
views
iTerm2 style fullscreen on OSX
iTerm2 has the ability to use "old-school" (non-Lion) style fullscreen. Emacs can do this too: (setq ns-use-native-fullscreen nil). iTerm2, however, allows you to keep the native OSX menu bar (the one ...
0
votes
0
answers
129
views
Projectile void variable `it`
Projectile, as of versions marmalade-0.10.0 and melpa-20150720.515, seems to have lost access to the it variable. I think that dash may have changed the variable's scope. How can I work around this?
...
0
votes
0
answers
184
views
How can I get the same emacs experience on any computer?
I really enjoy my emacs config (the autocomplete and indentation settings, the use of things like jedi and tern etc.)
Most of the time I use emacs at home on my personal macbook pro laptop but I am ...
0
votes
0
answers
224
views
elscreen on startup
I installed elscreen through melpa & it works if I open the emacs and type M-x elscreen-start. How to start the elscreen automatically? (require 'elscreen) in .emacs does NOT automatically start ...
0
votes
0
answers
189
views
Completing from filesystem search in ido-find-file
By default, when a pattern that has been typed matches no results, after a short pause in typing ido-find-file goes on to try to locate a matching file in one of recently visited directories (I ...
0
votes
0
answers
93
views
Variable-pitch font has stopped rendering correctly
For some reason, variable-pitch fonts have stopped rendering correctly. They previously worked fine, but something seems to have changed (though nothing in my .emacs has changed).
I am using OS X 10....
0
votes
0
answers
64
views
Meaning of AucTeX warning here
I've created the following LaTeX file:
\documentclass[10pt]{book}
\usepackage{subfiles}
\usepackage{mystyle}
\begin{document}
\subfile{./tex/title.tex}
\subfile{./tex/intro.tex} %warning here says: ...
0
votes
0
answers
184
views
how to quote parameters in source blocks
I have two (org-mode) source blocks, both with parameters:
select-union(tbl=a_table)
and
column-names(tbl=a_table)
Both produce SQL artifacts from the table data.
Now I want to write a new source ...
0
votes
0
answers
134
views
How remove the numbers and cross on Elscreen tab?
I use Elscreen, a sort of screen ulitily manager.
It's like tabs like you have in Chrome. I use when I have too many buffers/windows to handle it, and when I run 2 different projects next to each ...
0
votes
0
answers
191
views
How to produce agenda views from buffers in memory
I've noticed that since my org files have been moved to a network share agenda views take an age (1 minute or more) to produce. This is particularly annoying because I am working on a new view and I ...
0
votes
0
answers
114
views
question of function of helm-projectile-find-file
When using helm-projectile-find-file, if I want to find java file (end by .java). I typed java, but it could also list file of
jav/test/a.a
jav/test1/a.a
jav/test2/a.a
How to make it work only list ...