Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [init-file]

for questions about initialization files `.emacs` or `init.el. DO NOT USE this tag if you assume answers require tweaking initialization files because many solutions do not involve directly manipulating initialization files.

5
votes
0answers
141 views

Stopping pdf-tools from resetting to the beginning of an open PDF when I eval-buffer my config file

I'm using pdf-tools to read PDFs in Emacs, and am pretty happy so far. However, I've found when I modify, and then eval-buffer my configuration file, the PDFs I opened earlier with pdf-tools get put ...
4
votes
0answers
245 views

In Emacs, how do you force using a fallback font?

Font and encoding (in a broad sense, internationalization) are causing problems in many software scenarios, like web browser and editor. The Unicode U+201C and U+201D are double quotation marks. ...
4
votes
0answers
91 views

Get describe-key links to bring me to org-mode config files, not .el config files?

For my Emacs configuration, I use a literate programming setup. My config files are in org-mode format, and my init.el file consists mostly of org-babel lines like (org-babel-load-file "~/emacs/...
3
votes
0answers
440 views

error autoloading failed to define function when loading custom file

I recently decided rewrite my emacs configuration. I want to load my custom org configuration only in the case when I am opening a *.org file. Considering a minimalistic configuration of init.el (use-...
3
votes
0answers
62 views

Highlighting the changed line in the source file in the resulting pdf using auctex and pdf-tools?

Is it possible to highlight the changed line in the resulting pdf using auctex and pdf-tools. I have this feature enabled in Skim with the following lines in my setup. (add-hook 'LaTeX-mode-hook (...
3
votes
0answers
119 views

Profiling org-mode init file

My initialization file is organized in org-mode with src snippets. Is there a way I can profile it to see which snippets take the most time to evaluate? When my initialization file was in Elisp, I was ...
2
votes
0answers
74 views

How to increase the number of recent file listings in helm-mini?

Is there a way to configure the number of recent files that will be in the Recentf section of a helm-mini buffer?
2
votes
0answers
139 views

fill-column-indicator mode doesn't show a straight vertical line

OS windows7 64bit | GNU emacs 24.3.1
2
votes
0answers
476 views

init error: file missing - cl-generic after any time I edit settings.org file

I am using org mode to organize my various Emacs settings. Within my init.el file I just have (taking out initial comments): ;;; Code: (package-initialize) (eval-when-compile (require 'use-package))...
1
vote
0answers
85 views

Remove scrollbar, faster

I like a clean interface. One without the clutter of scroll bars, or menu bars. So, to remove them, I have the following in my init.el (progn (menu-bar-mode -1) (scroll-bar-mode -1) (tooltip-...
1
vote
0answers
31 views

Automatically download external packages

How can I configure my init.el download packages that are not in (M)Elpa and install them automatically (if not already installed)? Something like doing it with wget or with git (as you do in vim) ...
1
vote
0answers
48 views

Not successful to enter mmm-jinja2 mode after installation using MELPA

So what I have tried is to first install the package by using MELPA: M-x package-install RET mmm-jinja2 I looked up where the package have been installed and found it to be at "~/.emacs.d/elpa/mmm-...
1
vote
0answers
61 views

Open new frame when switching between projects in projectile

Regularly I am working in several projects at the same time, projectile has been great for helping me with all the mess, but now, I would like to open a different frame per project, i.e., If I switch ...
1
vote
0answers
44 views

Migrate my init.el to spacemacs

Running emacs 25.2.2. Currently I am trying out spacemacs, primarily because I found the keybindings more intuitive. I needed some stuff from my init.el to move to .spacemacs before I can start using ...
1
vote
0answers
114 views

Package init and refresh problems

Due to unknown reason(s), the package manager in my Emacs 25.3 cannot refresh properly anymore: whenever I try to do M-x list-packages it throws an error: error in process filter: package-read-...
1
vote
0answers
27 views

ESS folding for R6 classes

What is the proper way to install, configure and activate folding of R script files? I followed emacswiki.org/emacs/FoldingMode but it doesn't seems to work. I installed folding.el to .emacs/lisp/. ...
1
vote
0answers
126 views

Using Ubuntu Emacs init file on Windows; possible multiple issues

I've seen Manage same init file for Linux and Windows, but it is not quite what I want. Bear with the description of issues and my attempts for resolution. I recently installed Emacs on Windows using ...
1
vote
0answers
78 views

Problem evaluating a `sage-shell-mode` function through `ob-sagemath`

I'm trying to use sage-math within an org-mode file. So far I've been able to configure the sage-shell-mode package (I'm impressed that sagemath can be installed in Debian using the package manager), ...
1
vote
0answers
84 views

Emacs really laggy on prog-mode

I noticed Emacs was really laggy on any mode derived from prog-mode two days ago. Before that, everything was fine. I can navigate on a 1000+ lines org-mode file without problem, but I can't even type ...
1
vote
0answers
134 views

osx - disable left option/command key, enable right option

I'm learning Emacs. On my Macbook, I have in keyboard settings: Capslock and Ctrl key swapped Option and Command key swapped Emacs commands like ctrl-r, ctrl-s work fine for me (obviously I use them ...
1
vote
0answers
342 views

Init using org-babel-tangle with Emacs Prelude

Trying to convert my personal configuration for Emacs Prelude to use an org-based config. Looked around for a couple of days on this site, github and elsewhere but have not found a way to get org-...
1
vote
0answers
58 views

Unable to tweak theme settings unless I start a new session

I have this code in my init.el file, mainly to apply the theme correctly when running emacs server: ;; This will make sure the theme loads well in emacs daemon (setq myGraphicModeHash (make-...
1
vote
0answers
319 views

Emacs c++ cannot use semantic and company-semantic to complete <string> library function

system: linux mint 18.1 Eamcs version: 25.2 semantic configuration: (global-semanticdb-minor-mode 1) (global-semantic-idle-scheduler-mode 1) (semantic-mode 1) create a cpp file and include vector,...
1
vote
0answers
163 views

Remove all custom key bindings/Reset key bindings to default

I don't know Lisp unfortunately. I have a friend, and I really liked his color scheme/default Emacs setup. However, I hate his hotkeys and I am used to the ones that come as default with Emacs. Is ...
1
vote
0answers
817 views

Company Mode in All Buffers

I'm trying to configure company-mode to activate in all buffers, with the appropriate back-ends depending on file-type. To that end, I've added the following to my init.el file. However, regardless of ...
1
vote
0answers
86 views

Does emacs have font-lock for constant values?

I am trying to customize a theme for myself, and now I am finding a way to change the highlight color of constant values such as 10 and 10.5677. For example, C mode in Vim highlights those constant ...
1
vote
0answers
494 views

TAB key is not working in my Org-mode table

I'm customizing my emacs using literate programming within org-mode. So far, It is going Ok, except that the org table align is not working properly if I press the <TAB> key... even worst, the ...
1
vote
0answers
29 views

problem with default font

I changed the default font of GNU emacs 24 to DejaVu and when I want to open a file I had this weird output(characters start appearing in small size)! Anyone knows how to solve this problem? I'm ...
1
vote
0answers
489 views

Why do “gnu” and “linux” `c-default-style` treat `c-basic-offset` differently?

These lines in my .emacs (setq-default indent-tabs-mode nil) (setq-default c-default-style "linux") (setq-default c-basic-offset 4) result in the following formatting of my c code (the c-basic-...
1
vote
0answers
2k views

Why am I getting an error while downloading Melpa packages in Emacs on Win7 OS

I am using Emacs on a Win7 machine. I have added the Melpa repo. in init.el. When I do M-x list-packages, I do get a buffer listing the packages from Melpa. But, when i try to download them, I get an ...
1
vote
0answers
414 views

What variables are needed in init file in order to run eww in emacs 24.5.1 for windows?

I'm using emacs on windows, output of "emacs-version" outputs GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 I added the missing libxml2.dll, (downloaded from ezwinports) in the emacs ...
1
vote
0answers
28 views

find-file opens file but buries its buffer when ECB is activated

I have a hook in my .emacs file that activates ECB when prog-mode entered: (add-hook 'prog-mode-hook 'ecb-activate) When I open the first file that starts a prog-mode, it seems to cause find-file* ...
1
vote
0answers
91 views

How can I prevent a setting in init.el from being overridden during startup?

Using emacs-mac-port, and I'm trying to configure horizontal scrolling with the trackpad. The following expressions work if I execute them manually via eval-last-sexp, (global-set-key [wheel-right] (...
1
vote
0answers
152 views

cannot open load file org2blog-autoloads

I'm using Ubuntu 14.04 lts and emacs 24.3.1 The error I get is Warning (initialization): An error occurred while loading `/home/guy/.emacs': Symbol's value as variable is void: org2blog-autoloads ...
1
vote
0answers
408 views

M-x eval-buffer my init.el file every time I start emacs

I am a total emacs newbie. I was following the Master Emacs in one year guide by Chen Bin. Following it, I cloned Steve Purcell's .emacs.d repo. Now the guide works just fine when I do M-x eval-...
1
vote
0answers
389 views

Do I still need to create a .emacs file?

I have both aquamacs and emacs (installed from brew) on my macbookpro. I intend to learn to use aquamacs as my main editor/IDE. When I use C-h v user-init-file in aquamacs, it reports the value as ~/....
1
vote
0answers
120 views

Using cmd-N and cmd-T with emacs

I am using a Mac 10.9.5 and Emacs 24.4, installed with macports and aliased as alias emacs /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs At the moment, when I have an emacs file open and I ...
0
votes
0answers
69 views

Cannot enable visual line mode globally

I would like visual-line-mode to be always on. For this reason I put in the very end of my init.el file the following line of code (global-visual-line-mode 1) (as suggested here). Anyway, the above ...
0
votes
0answers
53 views

Using Emacs as a daemon (emacsclient) exhibiting weird behavior

Whenever I use Emacs as a daemon it seems like my init file isn't being fully loaded. My keybindings in particular are acting very odd. I use some unorthodox keybinds; for example: Ctrl+u = ...
0
votes
0answers
39 views

LSP with PHP not working

I am trying to setup php with lsp and can get it working. I followed what have been posted here: https://www.reddit.com/r/emacs/comments/7xz6bd/im_having_the_worst_time_trying_to_get_php/ Nothing ...
0
votes
0answers
146 views

Disabling recentf mode?

I try to disable this via (recentf-mode -1) (setq recentf-mode nil) ;; mysteriously switches to t after some time but it keeps automatically turning on after some time and is causing problems for ...
0
votes
0answers
153 views

No Such File or Directory, Global, Error with Company Mode

I'm currently following this guide to expanding my emacs configuration on my Mac OS X system. However, every time I (save-buffer) with C-x C-s, I get the following error message: apply: Searching ...
0
votes
0answers
35 views

How to enable SHIFT+TAB for multi line code region unindentation?

I have found this code which enables both TAB and SHIFT+TAB for code region indentation and unindentation. The problem is SHIFT+TAB doesn't work on multi line codes and also we have to place the ...
0
votes
0answers
168 views

Auctex not displaying pdf correctly using pdftools

I am using pdftools with AUCTEX so that I can display output within emacs. I am using a windows system with emacs 25.3. However after compilation I get the following: %PDF-1.5 % 3 0 obj << /...
0
votes
0answers
158 views

Not able to load a color theme from 'init.el' or using 'M-x color-theme-select'

I am trying to get emacs(emacs24) to load with another colortheme (looking to have a 'dark' theme). In my init.el file I have the lines: (eval-after-load "color-theme" '(progn (color-theme-...
0
votes
0answers
149 views

how to use multiple emacs distributions?

I'd like to use multiple emacs distributions e.g. spacemacs, prelude, starter-kit and my personal config for demonstration purposes. What would be some recommended ways to realize this?
0
votes
0answers
128 views

Emacs hung with Error running timer 'blink-cursor-start'

I just installed a fresh Ubuntu 17.10 on a Dell XPS 15, and then installed Emacs from the repos with apt-get in the normal way. The moment I start Emacs, I get the error message Error running timer '...
0
votes
0answers
35 views

frame title as buffer file resets to default after some time

In my ~/.emacs I have the following: (setq frame-title-format '("" invocation-name ": " (:eval (if (buffer-file-name) (abbreviate-file-name (buffer-file-name)) ...
0
votes
0answers
213 views

Error when initializing Emacs

This is what I get when starting Emacs from terminal with emacs --debug-init. I don't know the reason why emacs suddenly started to not working. Debugger entered--Lisp error: (wrong-type-argument ...
0
votes
0answers
215 views

Emacs: How to open new frame on a second screen in windows

I use two screens and windows 10, and want to open a new emacs frame on the other screen than the one I use. How do I do this? Preferably, I want the new frame made to be maximized in size. I have ...