All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
626 views

normal-erase-is-backspace-mode does not work over ssh when included in .emacs

In my .emacs file I have the following line: (normal-erase-is-backspace-mode) to change <backspace> to backwards delete and ^H to help over the terminal. Unfortunately when I use emacs with -...
Nathanael Farley's user avatar
0 votes
2 answers
246 views

Mapping equivalent local files to remote files when using tramp

I have two copies of the same project, one local, one on a remote server, and I am editing a project's file locally, while running an inferior ESS process on the remote server. The remote files get ...
Kirill's user avatar
  • 1,009
12 votes
4 answers
2k views

Make completing-read respect sorting order of a collection

Either: (completing-read "test: " '("a" "b" "c")) or: (completing-read "test: " '("c" "b" "a")) produces the same result in completion buffer when pressing TAB. How do I make it respect the ...
Tu Do's user avatar
  • 6,812
5 votes
0 answers
3k views

Emacs is blurry on scaled Windows displays (eg. Surface)

To smooth my embedded workflow I have succombed to buying a Microsoft Surface. Like the early days of MacOS retina screens Emacs is all blurry. Does anyone know if there is any support for scaled ...
Mark's user avatar
  • 1,429
8 votes
3 answers
2k views

How can I build a regexp insensitive to case?

I have a bunch of keywords: set write quit which each can be shortened down to one letter: s se set w wr wri writ write q qu qui quit Further, these keywords are case-insensitive, so the following ...
Sean Allred's user avatar
  • 6,921
4 votes
1 answer
634 views

How can I quit entering keywords when I auto-insert with Helm?

When I M-x find-file RET file.el RET and then run M-x auto-insert, I am eventually presented with a list of keywords that Helm will complete for me. Trouble is, I have no idea how to finish the Helm ...
Sean Allred's user avatar
  • 6,921
5 votes
4 answers
481 views

Is there a way to search/replace with regexps interactively using rx syntax?

I really like rx but I can't use it interactively. Has someone already tried to extend isearch to support rx syntax?
knarf's user avatar
  • 323
22 votes
2 answers
1k views

Is there a mode to automatically update copyright years in files?

Usually around this time of year people start to realize that their copyright year is out of date in their files. This is particularly annoying if you like to put the copyright in every source file. I ...
asmeurer's user avatar
  • 1,582
1 vote
2 answers
1k views

Is there a mode to indent doxygen type comment block with function parameters?

Consider the following php function: public function test(array $a, SomeObject $b) { return 0; } I would like to automatically generate the following code block: /** * @param array $a * @...
mandark's user avatar
  • 159
2 votes
0 answers
1k views

Helm not working on remote project (Tramp over SSH)

I'm working on a project that is kept on a shared server (server runs Ubuntu 14.04 LTS; my machine runs OS X 10.10.2). I access the server files via Tramp using a password-secured SSH connection. ...
JDRomano2's user avatar
2 votes
1 answer
354 views

Elisp revert add-face-text-property

I start with this: (setq test (propertize "foobar" 'face 'font-lock-keyword-face)) ;;=> #("foobar" 0 6 (face font-lock-keyword-face)) (add-face-text-property 0 3 'font-lock-type-face nil test) ...
abo-abo's user avatar
  • 14.1k
2 votes
2 answers
213 views

Emacs-native solution to searching files

When I use Emacs on a Linux OS, I search through files with rgrep. On Windows machine this takes some additional setup. Is there an Emacs-powered solution for searching through multiple files that ...
Matthew Piziak's user avatar
9 votes
2 answers
399 views

How do I filter kill-ring contents?

Is it possible to prevent kill-ring from storing whitespaces/empty lines? Right now after I do a couple of changes and then go to browse-kill-ring I often see something like this: ------- ------- ...
Ignacy Moryc's user avatar
1 vote
0 answers
305 views

How to disable DocView as default command in AUCTeX?

When I'm writing a .tex file on emacs, I like to compile with pdflatex and then see the result on an external pdf viewer. The emacs manual says that I can use C-c C-c to launch any compilation method ...
Koldito's user avatar
  • 199
1 vote
1 answer
1k views

How can I get the tags for a headline in a clock report formula?

I'd like to understand how to retrieve the tags for a headline that is being processed by a clock mode report formula. Suppose I have a clock report table defined like this. #+BEGIN: clocktable :...
Eric Johnson's user avatar
2 votes
1 answer
937 views

Arrow and M-n M-p don't work with company mode in terminal when ESC aborts completion

In a terminal window, I'm finding that company-mode completion doesn't work, whereas it does work in a graphical window. For example a down arrow inserts the text OB and M-n simply inserts n. As a ...
TooTone's user avatar
  • 401
4 votes
2 answers
2k views

How to use a fixed desktop save directory name with desktop-save-mode?

I would like to use a standard desktop save file when using Emacs as a server (with Emacsclient) and use no desktop save file (or optionally, another desktop save file) when running a regular Emacs ...
Håkon Hægland's user avatar
2 votes
1 answer
94 views

Get widget at point

For example, I inserted many link widgets like this: (widget-create `(link :tag "Test link" :button-prefix "" :button-suffix "" :...
Tu Do's user avatar
  • 6,812
4 votes
1 answer
2k views

How to get buffer position given line number and column number?

I'm trying to swap the contents of a region with the text of the same width region below it. I think I should be able to atleast correctly capture the region on the next line using the code below, ...
wdkrnls's user avatar
  • 3,707
5 votes
1 answer
7k views

Emacs Can't Find Theme File

(add-to-list 'custom-theme-load-path "~/.emacs.d") (load-theme 'sanityinc-solarized-dark-theme) I have these two lines in my .emacs file, and those theme files in the listed directory, yet emacs ...
CodeSammich's user avatar
7 votes
2 answers
5k views

how to set environment variables={EDITOR, VISUAL} to prefer running emacs?

my usecase I'm currently running GNU Emacs version=24.3.1 graphically (i.e., under GNOME/X though started from a script invoked from a gnome-terminal running bash) on a Debian Linux. Just now I was ...
TomRoche's user avatar
  • 632
3 votes
0 answers
535 views

Emacs crashing on OSX, no crash log file

My Emacs started to crash a lot without modifying .emacs or installing anything new. I can replicate the steps (using Helm, Projectile) by this: helm-projectile then I enter a query quickly and hit ...
lukas.pukenis's user avatar
12 votes
2 answers
3k views

Projectile with caching doesn't like new files

I use projectile for my project browsing. I have seen that it's really slow, so I turned on caching. Now it's fast (not blazingly fast, sadly). If I create a new file outside emacs itself, projectile ...
lukas.pukenis's user avatar
15 votes
2 answers
652 views

Does elisp have regexp literals?

The sheer number of backslashes my regexps require is pretty crazy. Does elisp have regexp literals, so I can write something like rx"some\(regexp\)" instead of "some\\(regexp\\)"
nosefrog's user avatar
  • 805
12 votes
2 answers
1k views

Elisp: How to exclude sensitive information from an init file? (ie login credentials)

I want to define a log in function in my init script, but I don't want to hardcode my login credentials. I think a good workaround is to have my init script read in my login credentials from a local ...
modulitos's user avatar
  • 2,482
22 votes
3 answers
30k views

emacs on terminal does not recognise option as alt-key on mac

I am on a mac and I am running emacs 24.4.1, but I have the same problem also with 22.1.1. When I open mac on a terminal on the remote host, it does not recognise option key (alt) like the meta key. I ...
simona's user avatar
  • 403
5 votes
1 answer
476 views

How to obtain the statistics of the frequency of characters in a buffer

Are there some Emacs' packages which can be used for analysing the frequency of the characters and the words used in the current buffer. As a particular example it would be interesting to have a ...
Name's user avatar
  • 7,859
2 votes
1 answer
2k views

sr-speedbar width size options on start not working

By default, sr-speedbar seems to always want to take 50% of available window space. I'm trying to change it's default size to something smaller (like 40 px), but I can't seem to figure out how as ...
Zamicol's user avatar
  • 143
16 votes
1 answer
3k views

Helm swoop on all project files (not just current buffers)

So I'm looking to have helm-swoop look at all files in a project, not just the current set of open buffers. This is so I can use swoop to find all occurrences in a project, mark relevant ones, then ...
Mike McFarland's user avatar
2 votes
1 answer
1k views

how to give optional arguments to commands

Looking at the documentation for shell-command (M-!) I see there are two optional arguments, OUTPUT-BUFFER, and ERROR-BUFFER. But when I type M-! it only asks me for the shell command. How do I ...
clarkep's user avatar
  • 133
2 votes
2 answers
446 views

Trying to enable keybindings for 'outshine': "set before outline-mode is loaded"

I'm just getting started with outshine, and I'm trying to enable outshine's keybindings, but I am stumped by the directive in the readme to ...set the outshine prefix (M-#) in your init file before ...
Steven Arntson's user avatar
7 votes
1 answer
718 views

How to implement comments outline in ESS similar to that of Rstudio?

Shifting from Rstudio to ESS took some time with me because of the steep learning curve of a versatile Emacs editor, but is was a worthwhile experience. What I am still missing in ESS is that outline ...
doctorate's user avatar
  • 1,829
2 votes
1 answer
246 views

ESS Syntax Highlighting for Negative Numbers?

I know how to set coloring for an interactive R session in ESS + Emacs for all numbers. Is there a way to drill down further and set different colors for negative numbers?
learner's user avatar
  • 203
1 vote
2 answers
2k views

Is there an equivalent of `M-x check-parens` for finding unmatches braces or ['s in any buffer (not a particular mode)

M-x check-parens finds unmatched parentheses in a buffer. I am wondering if there is a similar command which finds unmatched { or [.
Name's user avatar
  • 7,859
4 votes
2 answers
1k views

Does autoload load all functions in the file or just the one specified?

I have developed some private extensions to some major modes, and I would like to load those extensions only when the given major mode is actually used by the user. The extensions consists of a set of ...
Håkon Hægland's user avatar
13 votes
2 answers
3k views

org-refile to a known fixed location

I'm trying to write a function that will take a heading and refile it to one specific location. The doc for org-refile is (org-refile &optional GOTO DEFAULT-BUFFER RFLOC MSG) and RFLOC is RFLOC ...
jtgd's user avatar
  • 964
2 votes
2 answers
803 views

How to use function update-file-autoloads and and variable generated-autoload-file?

Let's say I have Emacs Lisp library ~/emacs/my-lib.el with contents: ;;;###autoload (defun my-func() "hello" (interactive) (message "Hello")) (provide 'my-lib) I would now like to produce a ...
Håkon Hægland's user avatar
9 votes
2 answers
2k views

How to implement the piping operator %>% in ESS mode?

Recently, R witnessed the smart introduction of the piping operator %>% or then operator in code which I use quite frequently nowadays. I wonder if this has already been implemented in the newest ...
doctorate's user avatar
  • 1,829
5 votes
1 answer
486 views

Define a keyboard macro to indefinitely execute another keyboard macro and then do something else

I've defined one keyboard macro, bound to keystroke 1, say, and I want to define a second keyboard macro that executes the first one indefinitely and then returns to the beginning of the buffer. I ...
Paul Buckingham's user avatar
1 vote
1 answer
408 views

why is emacs indenting when I type an open paren

I'm very new to Emacs and I like it so far, but there is one thing that has been bugging me. Its auto-indenting has been acting pretty random. Whenever I am on a new line and type something like: ...
clarkep's user avatar
  • 133
4 votes
2 answers
474 views

Why is TAGS table setting persistent?

I have in my startup init file a setting: (setq tags-table-list (list "~/linux/TAGS")) After using emacs and TAGS tables, I now want to change that to: (setq tags-table-list (list "~/trunk/TAGS")) ...
WilliamKF's user avatar
  • 393
4 votes
2 answers
716 views

Configure indentation logic to ignore certain lines?

I am using outshine to organize my code (verilog/systemverilog language). Here is an example use: // * Class definition class my_class extends my_base_class; // code .. // ** Task 1 ...
Kaushal Modi's user avatar
  • 25.7k
6 votes
2 answers
1k views

Make org-agenda show only first occurrence of recurring task?

In Org-Mode, I have a few mundane re-occuring tasks. When a task is set to re-occur, it shows up on every day it reccours. E.g a daily task: * TODO Bugzilla Triage SCHEDULED <[today] ++1d>...
Leo Ufimtsev's user avatar
  • 4,558
5 votes
1 answer
2k views

How to move by whole line rather than within a wrapped line (emacs 23.1+)

I think this is mostly just a question of how to word the question... Prior to emacs 23.1, when pressing down-arrow or up-arrow the cursor would move up a whole line at a time even when that line was ...
ericx's user avatar
  • 283
19 votes
2 answers
3k views

Is there a possibility to have multiple agenda views open at once?

I have a custom agenda view which shows the Items I did last week and the items I have to do in this week. This view is based on a filter of TODO items. However, it would be good to see scheduled ...
Phil Ipp's user avatar
  • 499
7 votes
2 answers
2k views

How to use autoload?

I am trying to figure out how to add autoload features to a private library. Let's say I have developed a private Lisp library "my-lib.el". It consist of a set of functions, some can be used from any ...
Håkon Hægland's user avatar
2 votes
1 answer
242 views

auto-complete mode performance is awful in nxml-mode

Performance used to be OK, but a couple of weeks ago the performance got much worse. Some experimentation showed that it's auto-complete-mode in XML files. When I type, it now takes a second or two ...
jack's user avatar
  • 21
2 votes
1 answer
150 views

How can I save eshell alias settings when using prelude?

Second day using Emacs. I've forked the Prelude GitHub project and I'm storing my settings in the personal folder as instructed in the documentation. I would like to be able to use my eshell ...
Zamicol's user avatar
  • 143
6 votes
2 answers
609 views

Does Emacs Lisp functions return objects by reference or by value?

I tried to determine if Emacs returned object by reference or value, but could not find a clear answer (searching google and Emacs Lisp manual). I guess it must be "by reference", and I just ...
Håkon Hægland's user avatar
0 votes
3 answers
534 views

multi-term terminal messages configurations not working as expected

I'm trying to follow this article and configure my multi-term to work with remote files seamlessly. Edit: That article seems to be down currently. Try the cached version here. But it's not working as ...
chitti's user avatar
  • 51

15 30 50 per page
1
505 506
507
508 509
542