All Questions

0
votes
1answer
77 views

How skip gif-images, when going to the next file?

I use the package image-mode to view images in a directory. When go to the next image in the same directory, I use a function to go the next image in image-mode. (defun find-next-image (&optional ...
0
votes
0answers
96 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
1answer
102 views

Direx not working, cl-call-next-method only inside primary and around methods

Setup: GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-25 on KAEL Compiled from EmacsW64. Direx, using the latest version of Direx from MELPA Windows 7 x64 bit. Situation: I ...
0
votes
0answers
58 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
1answer
330 views

Fix for “Invalid function:” error when external function become a macro

For: (defun my-w3m-view-url () (interactive) (browse-url (w3m-anchor))) (eval-after-load 'w3m (define-key w3m-minor-mode-map (kbd "RET") #'my-w3m-view-url)) when byte-compiled I get error on ...
0
votes
1answer
103 views

projectile-switch-project not working with autoload

When I attempt to autoload projectile like so (autoload 'projectile-global-mode "projectile" " t nil) And then open Emacs I cannot use projectile-switch-project (Symbol's function definition is void:...
0
votes
0answers
72 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
0answers
75 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
1answer
58 views

Why do my js2-mode hooks work on Mac but not Fedora Linux?

I am getting very inconsistent behavior with js-mode and js2-mode hooks and I am not sure why. I have three "hooks": (add-hook 'js2-mode-hook (lambda () (setq mode-name "Zono-mode"))) (add-hook '...
0
votes
0answers
66 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
1answer
528 views

How can I add the pdflatex binary to my path to make it visible to emacs, specifically LaTeXPreviewPane?

Solved: See my answer below. It seems like emacs can't always see what you can see in the terminal. The package mentioned in my answer below solved this issue. I'm trying to make LaTeXPreviewPane ...
0
votes
0answers
82 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
1answer
226 views

How to make org-babel-load-file use umlauts (åäö) correctly?

I have this in my init.el (defvar dropbox-d "C:/Dropbox") (defvar dropbox-emacs-d (expand-file-name "emacs" dropbox-d)) (org-babel-load-file (expand-file-name "config.org" dropbox-emacs-d)) In ...
0
votes
1answer
38 views

query replace ingonring new lines

My text is written in paragraphs that are split into lines, which makes it difficult to search for strings that might be spanned across several lines. For instance, given the following text This is ...
0
votes
0answers
101 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
0answers
173 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
2answers
86 views

Ergoemacs cuts selected region when I try to change buffer

When I command eval-region to a highlighted area, I would like to quickly change to another buffer with C-x b to see the result. However, the first part of this key combination cuts the selected code, ...
0
votes
0answers
65 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
2answers
112 views

Ghost code in Emacs configuration, how to find it?

I use the package vimish-fold. The package contains, for example, two functions, called as: Function 1 Function 2 There is a new commit to the package vimish-fold on Github, which will add the new ...
0
votes
0answers
99 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
0answers
101 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
1answer
353 views

Emacs and Gpg4win Opening input file error

Emacs 24.5.1 in cygwin x64, Windows 7, gpg (GnuPG) 2.0.21 (Gpg4win 2.2.0) Visited file ~/somefile.gpg Got error "Opening input file" "Can't decrypt" "Exit". Debugger entered--Lisp error: (file-...
0
votes
0answers
57 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
0answers
98 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
1answer
75 views

How can I access certain field information of a BBDB3 record?

I'd like to write a command so that for a particular record (found for example with (bbdb-search (bbdb-records) regexp)) I'm able to extract just the name part of it (or e. g. the mail part, or any ...
0
votes
0answers
42 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
0answers
59 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
0answers
52 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
0answers
77 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
0answers
538 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
1answer
57 views

Theme seems to be permanently changed

I added this to my init.el: ;; Transparent Emacs ;;(set-frame-parameter (selected-frame) 'alpha '(<active> [<inactive>])) (set-frame-parameter (selected-frame) 'alpha '(88 70)) ...
0
votes
0answers
82 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
0answers
111 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
0answers
149 views

Bind a key to a lambda: what am I doing wrong? [duplicate]

I'm reading about some concepts of Emacs Lisp. The lambda's seems interesting to me. After reading the manuals about lambda's in Emacs Lisp, I decided to play with it. For example, I have this ...
0
votes
0answers
26 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
0answers
59 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
0answers
82 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
1answer
127 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
0answers
631 views

How to set custom date formats in org mode

I would like all my dates in org-mode to displayed like <Mon 24-Aug 2015>. I found a piece of code that addresses the problem (setq-default org-display-custom-times t) (setq org-time-stamp-...
0
votes
0answers
225 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
1answer
103 views

After `M-x pdb` switch to `compilation-mode` automatically?

M-x pdb is great while debugging. When the python process exits though, often there is a traceback left behind in the gud buffer that I'd like to view using compilation-mode so I can use next-error ...
0
votes
0answers
524 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
1answer
90 views

How to restrict find-tag-regexp to search only the symbol part of TAGS

A typical line in a TAGS file looks like this (note use of special characters ^? and ^A) (defvar copyright-owner user-full-name^?copyright-owner^A213,7296 and a find-tag-regexp will search the ...
0
votes
0answers
249 views

Is there a way to suppress errors in the *Messages* buffer?

I have a persistent problem with some jit-lock-function somewhere whenever I compile. I'm actually invoking the visual studio compiler, and I assume some of the output is somehow abhorrent to emacs. I ...
0
votes
1answer
489 views

evil mode: how to move cursor in insert state?

I am trying out evil mode, and I want to rebind something to four arrows so I can move conveniently up-down-left-right when I am in insert state. In other words, which functions in emacs/evil that I ...
0
votes
1answer
692 views

Have markdown-mode render checkboxes as in GFM

How can I make this: - [ ] check - [x] box render checkboxes, like in GFM? I think the output is something like <input type="checkbox" disabled> check <input type="checkbox" disabled ...
0
votes
0answers
15 views

Auto save is disabled but emacs is making files in the format .#file-name [duplicate]

I set auto save to nil after discovering this, but they keep popping up. Does anyone know what could be causing this? It's not the typical #filename#, it's making a dotfile .#
0
votes
0answers
24 views

Flickering cursor [duplicate]

Fairly often after doing some editing I will notice the cursor flickering. It blinks a little with an interval between blinks of around a couple of seconds -- but the intervals seem semi-random. It ...
0
votes
1answer
95 views

Errors after update: “File already exists error list-utils-pkg.el”

When I relaunched emacs after updating some packages, I had an error: Debugger entered--Lisp error: (file-already-exists "File already exists "/home/linevich/.emacs.d/elpa-24-3-1-x86-64-pc-linux-gnu/...
0
votes
0answers
86 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)...

15 30 50 per page