[SOLVED] emacs - gtkfilechooser

All of a sudden I am getting a very strange message on opening files for emacs.
(emacs:4970): Gtk-WARNING **: Failed to read filechooser settings from
"/home/wpt/.config/gtk-2.0/gtkfilechooser.ini": Permission denied
I installed the templates package for emacs, and originally if I changed the mode to "latex-mode" the appropriate item would show up in the file list (new file using template). That no longer happens. If I open emacs and enter the name of a stub.tex file I created(which is empty), the template message does not appear.
If I open emacs from a terminal with the stub.tex file, the template message does appear in the file menu, but the above Gtk-WARNING message is displayed.
If this is a permission issue, how do I change it?
EDIT: Mysteriously, the error message has disappeared. BUT I still cannot access the menu item: "New File Using Template" from within emacs -- only if I load the empty stub.tex file from the command line or the pcman file manager.
EDIT: Spoke too soon. error message is back.
EDIT: There are two items that have to be added to ~/.emacs to make the template package work: (1) require 'template, and (2) template-initialize. I simply moved both to the bottom of the ~/.emacs file, and the error was corrected. Now the listing in the File menu shows: "New File Using Template" upon opening.
Last edited by bt (2010-01-28 13:29:23)

Yeah I figured that out when I got back home. It was my own fault for running emacs from Run Program in xfce instead of from the Terminal.
However, I've installed that package along with the 75dpi one and it still doesn't work. I even ran fc-cache again just to be sure. Weird.
The error is "Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct" So perhaps it's a fontconfig problem. Both fontconfig and freetype2 as up-to-date. Hmm.
[EDIT] I restared X and everything worked. Thanks. I've updated the wiki with the information. I'll send a diff to the maintainer at some point; the PKGBUILD should really tell the user that he/she needs to install these fonts if using X windows
Last edited by Weeks (2007-05-05 23:32:05)

Similar Messages

  • [SOLVED] emacs-w3m

    I'm probably missing something obvious here, but I've installed both emacs-w3m and w3m, yet can't figure out how to use it!
    I've tried M-x emacs-w3m, M-x w3m and M-x w3m-emacs. How do I run it?
    edit: I googled and solved it by adding the following to my ~/.emacs file
    (require 'w3m-load)
    (require 'mime-w3m)
    Last edited by Barrucadu (2008-06-26 18:02:56)

    Yeah I figured that out when I got back home. It was my own fault for running emacs from Run Program in xfce instead of from the Terminal.
    However, I've installed that package along with the 75dpi one and it still doesn't work. I even ran fc-cache again just to be sure. Weird.
    The error is "Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct" So perhaps it's a fontconfig problem. Both fontconfig and freetype2 as up-to-date. Hmm.
    [EDIT] I restared X and everything worked. Thanks. I've updated the wiki with the information. I'll send a diff to the maintainer at some point; the PKGBUILD should really tell the user that he/she needs to install these fonts if using X windows
    Last edited by Weeks (2007-05-05 23:32:05)

  • [solved] Emacs crashes

    Hi, since the update today I'm experiencing strange emacs crashes...
    I'm afraid the log is not very informative...
    Fatal error 11: Segmentation fault
    Backtrace:
    emacs[0x503093]
    emacs[0x4e9aae]
    emacs[0x501eae]
    emacs[0x501f13]
    /usr/lib/libpthread.so.0(+0x10740)[0x7f1f9cf86740]
    emacs[0x4a8a9a]
    emacs[0x4ad9e4]
    emacs[0x441e6f]
    emacs[0x45f3fb]
    emacs[0x4634f3]
    emacs[0x55a26b]
    emacs[0x430cce]
    emacs[0x4516ea]
    emacs[0x4f4551]
    emacs[0x4f5ccf]
    emacs[0x4f7a40]
    emacs[0x55a147]
    emacs[0x4e9f4e]
    emacs[0x55a02b]
    emacs[0x4ee567]
    emacs[0x4ee880]
    emacs[0x418119]
    /usr/lib/libc.so.6(__libc_start_main+0xf0)[0x7f1f9cbf3800]
    emacs[0x418bce]
    [1] 18795 segmentation fault (core dumped) emacs --debug-init
    Maybe a better debug log: http://pastie.org/10101800
    Is there anyone having also these problems?
    NOTE: I closed the issue and mark it as "solved" since it seems to be OK since the update to emacs 24.5...
    Last edited by rogorido (2015-04-22 08:06:00)

    Alad wrote:If you don't mind use [Solved] or similar instead of [closed]. Closed is what appears next to the title if a moderator actually closes the topic.
    I wouldn't mind, but it is not really solved. Today it happened again... I'm analyzing whether some (emacs) package I installed could be the reason for these crashes...

  • [SOLVED] Emacs `forward-sentence' broken?

    Hello there,
    at least for me the behaviour of the `forward-sentence' function (normally bound to M-e) in GNU Emacs doesn't work right.
    After pasting the following paragraph to a buffer
    wikipedia wrote:Maximilian Karl Emil "Max" Weber was a German sociologist, philosopher, and political economist whose ideas influenced social theory, social research, and the entire discipline of sociology. Weber is often cited, with Émile Durkheim and Karl Marx, as among the three founding architects of sociology.
    I place the cursor to the beginning of the paragraph, i.e. just before "Maximilian". Then pressing M-e brings the cursor to the end of the paragraph. But the intended behaviour is to bring the cursor to the end of the first sentence, i.e. after the first "sociology", right before "Weber", isn't it? Is this a bug I should report?
    I tried this after starting up emacs by
    $ emacs -Q
    Emacs version 24.3.1
    [EDIT]: Post on the mailing list: http://article.gmane.org/gmane.emacs.help/93608
    [EDIT2]: It's solved: http://article.gmane.org/gmane.emacs.help/93612
    Last edited by ball (2013-09-26 15:53:10)

    Hello there,
    at least for me the behaviour of the `forward-sentence' function (normally bound to M-e) in GNU Emacs doesn't work right.
    After pasting the following paragraph to a buffer
    wikipedia wrote:Maximilian Karl Emil "Max" Weber was a German sociologist, philosopher, and political economist whose ideas influenced social theory, social research, and the entire discipline of sociology. Weber is often cited, with Émile Durkheim and Karl Marx, as among the three founding architects of sociology.
    I place the cursor to the beginning of the paragraph, i.e. just before "Maximilian". Then pressing M-e brings the cursor to the end of the paragraph. But the intended behaviour is to bring the cursor to the end of the first sentence, i.e. after the first "sociology", right before "Weber", isn't it? Is this a bug I should report?
    I tried this after starting up emacs by
    $ emacs -Q
    Emacs version 24.3.1
    [EDIT]: Post on the mailing list: http://article.gmane.org/gmane.emacs.help/93608
    [EDIT2]: It's solved: http://article.gmane.org/gmane.emacs.help/93612
    Last edited by ball (2013-09-26 15:53:10)

  • [solved] emacs won't start

    I'm interested in learning some lisp and it seems like emacs+slime is the way to go (even though I perfer vim).
    Seems like there is something weird with my configuration somewhere, because it won't run.
    $>emacs
    emacs: Invalid visual specification `DirectColor'
    $>
    I'm not entirely sure what to change, I tried adding "Emacs.visualClass: TrueColor" to /etc/X11/app-defaults/Emacs but it doesn't seem to do anything.
    Edit: meh. Forgot that you have to reload the .Xdefaults
    Last edited by scj (2007-12-08 13:12:25)

    I did search. Ok, I suck at choosing the best search terms. I searched again, as you advised, and the answer in this thread https://bbs.archlinux.org/viewtopic.php?id=89043 did the trick. Apologies for not finding the obvious. And, as always, thanks for the assistance.

  • [solved] Emacs in X windows - Characters are not displayed

    Emacs works fine when run with -nw.
    But when I run it without, in X Windows, emacs does not display characters properly. It just displays those whites boxes with the black borders. The ones you see when you're trying to view characters for which you don't have the right font.
    I installed XEmacs, and that worked fine. I don't understand why the normal Emacs doesn't.
    I'll post a screenshot when I'm home from work, but you should get the gist of the problem.
    Last edited by Weeks (2007-05-05 23:18:59)

    Yeah I figured that out when I got back home. It was my own fault for running emacs from Run Program in xfce instead of from the Terminal.
    However, I've installed that package along with the 75dpi one and it still doesn't work. I even ran fc-cache again just to be sure. Weird.
    The error is "Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct" So perhaps it's a fontconfig problem. Both fontconfig and freetype2 as up-to-date. Hmm.
    [EDIT] I restared X and everything worked. Thanks. I've updated the wiki with the information. I'll send a diff to the maintainer at some point; the PKGBUILD should really tell the user that he/she needs to install these fonts if using X windows
    Last edited by Weeks (2007-05-05 23:32:05)

  • [SOLVED] Emacs Configuration

    I wanted to set my Emacs theme the default Emacs theme. So, I removed the line on my init.el that changed the theme. I reopened Emacs and my background was dark (gray), instead of Emacs's default white. Very strange, I thought. After lots of attempts to fix it, I ended up removing .emacs.d/, and completely uninstalling emacs, which removed /usr/share/emacs too. Total wipe out.
    ~> locate emacs
    /etc/speech-dispatcher/clients/emacs.conf
    /home/david/.emacs-places
    /home/david/.emacs.d
    /home/david/.emacs.e
    /home/david/config_emacs.zip
    /home/david/.config/hexchat/scrollback/FreeNode/#emacs.txt
    /home/david/.emacs.e/.git
    /home/david/.emacs.e/.gitignore
    /home/david/.emacs.e/README
    /home/david/.emacs.e/ac-comphist.dat
    /home/david/.emacs.e/ac-dict
    /home/david/.emacs.e/auto-complete-config.el
    /home/david/.emacs.e/auto-complete-config.elc
    /home/david/.emacs.e/auto-complete.el
    /home/david/.emacs.e/auto-complete.elc
    /home/david/.emacs.e/auto-save-list
    /home/david/.emacs.e/fixme-mode.el
    /home/david/.emacs.e/init.el
    /home/david/.emacs.e/lua-mode.el
    /home/david/.emacs.e/popup.el
    /home/david/.emacs.e/popup.elc
    /home/david/.emacs.e/redo+.el
    /home/david/.emacs.e/session.1023209c8141597e4134217547192611600000006250032
    /home/david/.emacs.e/tq.el
    /home/david/.emacs.e/tramp
    /home/david/.emacs.e/vala-mode.el
    /home/david/.emacs.e/ac-dict/c++-mode
    /home/david/.emacs.e/ac-dict/c-mode
    /home/david/.emacs.e/ac-dict/clojure-mode
    /home/david/.emacs.e/ac-dict/css-mode
    /home/david/.emacs.e/ac-dict/java-mode
    /home/david/.emacs.e/ac-dict/javascript-mode
    /home/david/.emacs.e/ac-dict/php-mode
    /home/david/.emacs.e/ac-dict/python-mode
    /home/david/.emacs.e/ac-dict/ruby-mode
    /home/david/.emacs.e/ac-dict/scheme-mode
    /home/david/.emacs.e/ac-dict/tcl-mode
    /home/david/.emacs.e/auto-save-list/.saves-11111-davidarch~
    /home/david/.emacs.e/auto-save-list/.saves-11933-davidarch~
    /home/david/.emacs.e/auto-save-list/.saves-13866-davidarch~
    /home/david/.emacs.e/auto-save-list/.saves-16864-davidarch~
    /home/david/.emacs.e/auto-save-list/.saves-1935-davidarch~
    /home/david/.emacs.e/auto-save-list/.saves-3635-davidarch~
    /home/david/.emacs.e/auto-save-list/.saves-4124-davidarch~
    /home/david/.emacs.e/auto-save-list/.saves-752-davidarch~
    /home/david/.emacs.e/auto-save-list/.saves-8016-davidarch~
    /home/david/.emacs.e/auto-save-list/.saves-9367-davidarch~
    /home/david/.local/share/Trash/files/vim_emacs.png.png
    /home/david/.local/share/Trash/info/vim_emacs.png.png.trashinfo
    /home/david/Downloads/emacs_resize.png
    /home/david/Downloads/CodeMirror-2.3/demo/emacs.html
    /home/david/Downloads/CodeMirror-2.3/keymap/emacs.js
    /home/david/src/.metadata/.plugins/com.python.pydev.analysis/python_v1_3tswbhuj9gc4kibexhrzgzdx/v1_indexcache/ropemacs.__init___eztp.v1_indexcache
    /opt/komodoedit/lib/mozilla/chrome/komododoc/locale/en-US/emacskeybind.html
    /usr/include/evolution-3.4/e-util/e-text-event-processor-emacs-like.h
    /usr/lib/erlang/lib/tools-2.6.7/emacs
    /usr/lib/erlang/lib/tools-2.6.7/emacs/README
    /usr/lib/erlang/lib/tools-2.6.7/emacs/erlang-eunit.el
    /usr/lib/erlang/lib/tools-2.6.7/emacs/erlang-flymake.el
    /usr/lib/erlang/lib/tools-2.6.7/emacs/erlang-skels-old.el
    /usr/lib/erlang/lib/tools-2.6.7/emacs/erlang-skels.el
    /usr/lib/erlang/lib/tools-2.6.7/emacs/erlang-start.el
    /usr/lib/erlang/lib/tools-2.6.7/emacs/erlang.el
    /usr/lib/erlang/lib/tools-2.6.7/emacs/erlang_appwiz.el
    /usr/lib/erlang/lib/tools-2.6.7/emacs/test.erl.indented
    /usr/lib/erlang/lib/tools-2.6.7/emacs/test.erl.orig
    /usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/tools/Editra/src/extern/pygments/styles/emacs.py
    /usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/tools/Editra/src/extern/pygments/styles/emacs.pyc
    /usr/lib/ruby/1.9.1/x86_64-linux/enc/emacs_mule.so
    /usr/share/fish/completions/emacs.fish
    /usr/share/gettext/styles/po-emacs-x.css
    /usr/share/gettext/styles/po-emacs-xterm.css
    /usr/share/gettext/styles/po-emacs-xterm16.css
    /usr/share/gettext/styles/po-emacs-xterm256.css
    /usr/share/git/emacs
    /usr/share/git/emacs/.gitignore
    /usr/share/git/emacs/Makefile
    /usr/share/git/emacs/README
    /usr/share/git/emacs/git-blame.el
    /usr/share/git/emacs/git-blame.elc
    /usr/share/git/emacs/git.el
    /usr/share/git/emacs/git.elc
    /usr/share/gnome/help/anjuta-manual/C/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/cs/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/da/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/de/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/el/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/es/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/eu/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/fr/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/gl/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/ja/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/oc/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/pt_BR/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/sl/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/sv/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/th/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/uk/language-support-cpp-modelines-emacs.page
    /usr/share/gnome/help/anjuta-manual/zh_CN/language-support-cpp-modelines-emacs.page
    /usr/share/go/misc/emacs
    /usr/share/go/misc/emacs/go-mode-load.el
    /usr/share/go/misc/emacs/go-mode.el
    /usr/share/gtkhtml-4.0/keybindingsrc.emacs
    /usr/share/guile/1.8/ice-9/emacs.scm
    /usr/share/icons/Faenza/apps/16/emacs.png
    /usr/share/icons/Faenza/apps/16/emacs23.png
    /usr/share/icons/Faenza/apps/22/emacs.png
    /usr/share/icons/Faenza/apps/22/emacs23.png
    /usr/share/icons/Faenza/apps/24/emacs.png
    /usr/share/icons/Faenza/apps/24/emacs23.png
    /usr/share/icons/Faenza/apps/32/emacs.png
    /usr/share/icons/Faenza/apps/32/emacs23.png
    /usr/share/icons/Faenza/apps/48/emacs.png
    /usr/share/icons/Faenza/apps/48/emacs23.png
    /usr/share/icons/Faenza/apps/64/emacs.png
    /usr/share/icons/Faenza/apps/64/emacs23.png
    /usr/share/icons/Faenza/apps/96/emacs.png
    /usr/share/icons/Faenza/apps/96/emacs23.png
    /usr/share/icons/Faenza/apps/scalable/emacs.svg
    /usr/share/icons/Faenza/apps/scalable/emacs23.svg
    /usr/share/kbd/keymaps/i386/qwerty/emacs.map.gz
    /usr/share/kbd/keymaps/i386/qwerty/emacs2.map.gz
    /usr/share/mime/text/x-emacs-lisp.xml
    /usr/share/pixmaps/gnome-emacs.png
    /usr/share/speech-dispatcher/conf/clients/emacs.conf
    /usr/share/vim/vim73/colors/xemacs.vim
    That's "locate emacs". ~/.emacs.e/ is just a backup for ~/.emacs.d/, nothing is being loaded from .emacs.e, I'm sure.
    Either way, "pacman -R emacs" followed by "pacman -S emacs", and the background is still dark:
    >>moderator edit: The image is too large. Please read Forum Etiquette: Pasting Pictures and Code. Thanks. --fsckd<<
    I have no idea of what to do. I spent a few hours on this already, it's frustrating me quite a lot.
    Any ideas? Thank you so much.
    Last edited by ephan (2012-08-15 18:48:43)

    x-rix wrote:
    Are you getting any strange output if you are invoking emacs via command line?
    Also, what DE/WM are you using? I've had some funny colours in emacs and KDE in the past (that was the old KDE, though).
    (Btw, why pacman -R and not pacman -Rs?)
    Actually, Emacs isn't outputting a single character to terminal. I am using Openbox, and also tried Awesome WM, it worked the same.
    (I didn't know of -Rs, thank you )

  • [SOLVED] Emacs dependent on Ubuntu font family

    Installed emacs, and when I tried to run it, this what it said:
    Font `Ubuntu Mono 13' is not defined
    And it wouldn't start. I had to install ttf-ubuntu-font-family to make it run. File ~/.emacs was empty, and nothing resembling ubuntu (except for a few comments) could not be found under /usr/share/emacs.
    Did anybody else have this issue? Maybe emacs package should have ubuntu font dependency?
    Last edited by kotnik (2011-11-22 10:34:26)

    I have the same problem, emacs can't work  on X11 but works fine without X, that's not related with these  ttf-ubuntu-font-family cause it's installed, i have no .emacs file and .emacs.d/ folder is empty.
    The problem is related with my user profile cause it works on an other profile on the same system.

  • [SOLVED] Emacs with GTK2

    The latest GNU Emacs seems to use GTK3 instead of GTK2.
    Is there any way to get in to use GTK2, so thing look normal
    when running in graphical mode? Preferably without changing
    the code.
    Last edited by Hibernate (2012-08-30 22:19:50)

    ConnorBehan wrote:Does --with-x-toolkit=gtk count as changing the code?
    Sorry, it doesn't work... i still get gtk3. The change was made by the maintainer with the compile-time option "--with-x-toolkit=gtk3" (See this commit).
    I'm afraid we are left alone from now on. Wasting 10 minutes of our life to recompile emacs at every time until the end of the world :-(

  • [solved] Emacs fails to save to gpg encrypted files

    I have a few org-mode files encrypted to .gpg files with different keys. Each file bears the headers to tell emacs it's an org-mode file and which key to use to encrypt/decrypt:
    #-*- mode: org -*-
    #-*- epa-file-encrypt-to: ("[email protected]")
    This setup has been working flawlessly for years and  the keys are set to expire later in 2015.
    I noticed a couple days ago that emacs now fails to save those files: emacs works as expected while opening the files, i.e. pinentry-qt window shows up to ask for the passphrase, but when I tell it to save the file the following message is displayed in the minibuffer for a little while, then nothing and the file stays in its modified state. Last successful save dates from november 7th.
    (numeric values replaced because they look like gpg keys)
    Opening output file: [pub u 4096 1 <numeric value> <other numeric value> <another numeric value> nil u nil ...], 15
    The command epa-list-keys fails with Args out of range:
    command-execute: Symbol's function definition is void: \ epa-list-keys
    epg-list-keys: Args out of range: ["pub" "u" "4096" "1" "<numeric value>" "<other numeric value>" "<another numeric value>" nil "u" nil ...], 15
    I tracked this issue to this epg bug that supposed to be fixed since late november but obviously is not: http://debbugs.gnu.org/db/19/19002.html
    For those with the same issue, here's how to fix it:
    - uncompress epg.el.gz located in /usr/share/emacs/24.4/lisp
    - apply the below diff to epg.el
    - add write permission for regular user to epg.elc
    - run the byte-compile command from inside emacs on epg.el
    - remove write permission for regular user to epg.elc
    diff --git a/lisp/epg.el b/lisp/epg.el
    index 77181a1..4d9bbd2 100644
    --- a/lisp/epg.el
    +++ b/lisp/epg.el
    @@ -1910,8 +1910,9 @@ This function is for internal use only."
    string (match-string 0)
    index 0
    field 0)
    - (while (eq index
    - (string-match "\\([^:]+\\)?:" string index))
    + (while (and (< field (length (car keys)))
    + (eq index
    + (string-match "\\([^:]+\\)?:" string index)))
    (setq index (match-end 0))
    (aset (car keys) field (match-string 1 string))
    (setq field (1+ field))))
    http://git.savannah.gnu.org/cgit/emacs. … d=dbae12c5
    Last edited by kazimir (2014-12-13 13:55:43)

    looks good.
    See also. https://bbs.archlinux.org/viewtopic.php … 3#p1484413

  • [solved] Emacs depend on Python ?

    Hi, guys. When I install :
    $ yaourt -S emacs
      I see python appears in the dependencies. I think Emacs is written in C and Elisp, nothing about python. Anyone knows why ?
      When I install emacs-nox, I got very few dependencies. Why there are so big difference between emacs and emacs-nox ? I think emacs only have a X interface than emacs-nox. Compared with Vim,  X interface is too huge.
      Thanks.
    Last edited by jameschyn (2011-12-01 14:11:39)

    Check the respective PKGBUILDs and dependencies.
    No need to use an AUR helper: both emacs and emacs-nox are in the repos.
    === Edit ===
    I think I've got it: https://bugs.archlinux.org/task/26195 - sane pulls libieee1284 and libieee1284 needs python2.
    emacs-nox uses ncurses and not gtk3 (emacs needs gconf, gconf needs gtk3) so it's much leaner.
    Last edited by karol (2011-10-20 02:51:08)

  • [SOLVED] Emacs Key Theme in Gnome but Retain Select All with Ctrl-a?

    Using gnome tweak tool, I switched key theme to emacs. However, now when I press ctrl-A it no longer selects all. Especially given that "Ctrl-x h" isn't working to select all (not a problem! I want ctrl-a), I would like to keep the emacs key theme but still be able to select all with ctrl-A.
    I looked at dconf-editor, but org/gnome/desktop/wm/keybindings doesn't have anything for select all, and in org/gnome/desktop/interface I merely see gtk-key-theme set to emacs.
    Does anyone have a solution to this?
    Thanks a lot.
    Last edited by WorkingOnIt (2014-05-25 06:53:48)

    Since posting I found this thread: https://bbs.archlinux.org/viewtopic.php?id=162794
    I'm going to try editing the Emacs gtkrc (have to find where that is, but that's fine) and changing to:
    bind "<ctrl>a" { "select all" () }
    Last edited by WorkingOnIt (2014-05-25 06:48:55)

  • [solved] emacs daemon systemd unit doesn't start

    I found instructions on EmacsWiki for a systemd service file for running the emacs daemon at startup.  It works just fine on my desktop, but for some reason it doesn't work on my laptop.  Here's the service file (/etc/systemd/system/[email protected]):
    [Unit]
    Description=Emacs: the extensible, self-documenting text editor
    [Service]
    Type=forking
    ExecStart=/usr/bin/emacs --daemon
    ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook 'nil) (kill-emacs))"
    Restart=always
    User=%1
    [Install]
    WantedBy=multi-user.target
    When I run "systemctl start emacs@<username>", it fails:
    $ sudo systemctl status emacs@<username>.service
    emacs@<username>.service - Emacs: the extensible, self-documenting text editor
    Loaded: loaded (/etc/system/[email protected]; enabled)
    Active: failed (Result: start-limit) since Tue, 2013-01-01 09:19:09 AST; 4min 25s ago
    Process: 5621 ExecStart=/user/bin/emacs --daemon (code=exited, status=217/USER)
    CGroup: name=systemd:/system/[email protected]/<username>
    Any ideas why the exact same service file might start on one computer and fail on another?  If I just run "emacs --daemon" manually (or in ~/.xinitrc) it starts just fine.
    Thanks.
    Last edited by ibrunton (2013-03-06 21:05:17)

    injyuw wrote:
    My output:
    <username>.service - Emacs: the extensible, self-documenting text editor
    Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
    Active: active (running) since Tue, 2013-01-01 14:07:07 EST; 7min ago
    Process: 4822 ExecStart=/usr/bin/emacs --daemon (code=exited, status=0/SUCCESS)
    Main PID: 4823 (emacs)
    CGroup: name=systemd:/system/[email protected]/<username>
    |-4823 /usr/bin/emacs --daemon
    `-4833 /usr/bin/aspell -a -m -B --encoding=utf-8 --sug-mode=ultra
    Have you tried running it with the default .emacs.d & init.el?
    Same result: failed, status=217/USER.

  • [kinda solved] Emacs Sending wrong keystrokes in terminal

    So I installed my editor of choice, Emacs, yesterday.  I normally start Emacs with the -nw switch, because most of the time I like using it inside of the terminal window.  When I do this the backspace key doesn't backspace at all, instead it sends <C-h> and takes me to the help screen (very annoying).  BUT, it doesn't do this when I load the graphical emacs, and my backspace key works fine.
    Any help? 
    Last edited by lifeafter2am (2009-06-20 03:11:45)

    I had a similar problem with xterm. What I had to do was configure xterm such that backspace didn't send C-h so it wouldn't interfere with Emacs while still being able to delete to the left. I forget exactly how I did it, but it's a Xresources/Xdefaults solution.

  • [SOLVED] Emacs-Haskell-Mode Garbage on First Load

    I installed emacs-haskell-mode from pacman and I have this in my .emacs file:
    (load-library "haskell-site-file")
    haskell-site-file.el autoloads haskell-mode when I open a haskell file.  All works fine, but the very first time I open a haskell file (and load haskell-mode), this garbage gets spit out in my minibuffer:
    #[nil "\300C\207"
    [t]
    2]
    I've only been on emacs for a couple of months now and I've never seen that output before.  Haskell mode works fine as far as I can tell once it's loaded so the garbage output isn't causing any problems, but I'm just curious as to what it is and why it's there.
    Last edited by choogi (2010-07-14 21:02:01)

    If you're new to emacs, I don't expect you'd understand much lisp yet, but here is the answer:
    When including haskell-mode the following is run.
    (eval-when-compile
    ;; Emacs 21 defines `values' as a (run-time) alias for list.
    ;; Don't maerge this with the pervious clause.
    (if (string-match "values"
    (pp (byte-compile (lambda () (values t)))))
    (defsubst values (&rest values)
    values)))
    See the line starting with 'pp'.   That basically says to pretty-print the value of the byte-compile.  It pretty prints to the echo area (what you refer to as the minibuffer).  If you eval the byte-compile you get the same value you're seeing.
    This is a very long way to say that it's probably a bug.

Maybe you are looking for