57

The new advice system has the following advantages: add-function: This is brand new functionality that simply was not part of defadvice. It is a kind of hybrid between add-hook and defadvice. In the future, expect more foo-function variables (modified via add-function) and less foo-functions (modified via add-hook). This functionality was the main ...


17

For #2, first you'll want to add a couple of keybindings to your init file (these are the suggested keys in the Org manual) - (global-set-key (kbd "C-c l") 'org-store-link) (global-set-key (kbd "C-c C-l") 'org-insert-link) then you can hit C-c l somewhere in or on the item you want to link to, then C-c C-l where you want to place the link. It'll ask you to ...


11

If you provide the universal argument to replace-string, that is by pressing C-u before M-x replace-string, it only replaces matches that are surrounded by word boundaries. So, for example, a buffer containing mod set_mode would be become after C-u M-x replace-string RET mod RET off_mod off_mod set_mode You can find this information by looking in the ...


9

One of the clear benefits of advice being normal functions is that you can visit a definition with find-function. At present, when viewing the help for a (new-style) advised function, it provides a link to the help for the advice function, and from there a link to the source (as usual for function help). The old system provided the advice docstring inline, ...


8

From the file header: ;;; Commentary: ;; This package lets you add behavior (which we call "piece of advice") to ;; existing functions, like the old `advice.el' package, but with much fewer ;; bells and whistles. As I read it, the primary goal is to be simpler than the old advice system, not to have more capabilities. Reading the docs, it seems that ...


8

The trunk of Emacs' git repository will be released as Emacs 25.1, whenever it is ready. But there is also a branch in git called emacs-24, which gets bug solutions. This might (or might not, who knows) end up in Emacs 24.5. Commits to emacs-24 are merged to trunk from time to time.


7

It is possible to split the frame's root window which encompasses both of your windows, thereby allowing you to add a third window at any side. There is no built-in command to do that though, so here's some example code to define commands for this particular task: (defun my-split-root-window (size direction) (split-window (frame-root-window) ...


7

you can reference this topic http://orgmode.org/manual/External-links.html#External-links file:projects.org::some words text search in Org file file:projects.org::*task title heading search in Org file sorry, I don't know your means.


6

According to Stefan Monnier it's going to be 25.1.


6

May well be due to you're using the wrong emacsclient. I had the same (i.e., can't find socket and/or -error Unknown&_command:&_THEFILENAME Turned out I used /usr/bin/emacsclient, whereas my emacs is actually ~/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs . Creating a symlink from ~/Applications/Emacs.app/Contents/MacOS/bin/emacsclient to a ...


5

Perhaps the prerelease versions you were building had the version number 24.4.50? That means that they're actually prerelease versions of 24.5, which was later renamed to 25.1 (but still not released at the time of this writing). If so, you actually downgraded to the release version of 24.4, and thus lost this feature. I'm currently running 25.0.50, and ...


5

Since around Emacs-24, the vc-log buffer supports/expects an RFC822-style format, with some headers handled specially (e.g. Author:, Fixes:, and Summary:). In Emacs-24.4, the default message content was changed to make this more clear.


5

Package.el is a builtin package manager that can be used to install emacs packages. Cask is an Emacs Lisp project management tool, similar to Maven or Leiningen. It aims to control and automate the entire life cycle of an Emacs Lisp package, including dependency management, packaging, distribution and testing. You can use Cask to manage your emacs your ...


5

Use ;; (or more) instead of ; and this won't happen. What you're seeing is (in conjunction with electric-indent-mode) expected behaviour, as by convention Comments that start with a single semicolon, ‘;’, should all be aligned to the same column on the right of the source code. Such comments usually explain how the code on that line does its job. See C-...


4

I suffered from the same situation. Investigating in the configure.ac file reveals that the configure script in my case got the -lpng15 from the invocation of the libpng-config utility: dnl Some systems, eg NetBSD 6, only provide eg "libpng16", not "libpng". lpng=`libpng-config --libs 2> /dev/null` case $lpng in -l*) : ;; *) lpng="-lpng" ;; esac ...


4

You want to do: (add-hook 'c-mode-hook (lambda () (setq-local electric-indent-chars (remq ?\n electric-indent-chars))))


4

You could rebind RET to electric-indent-just-newline like this: (add-hook 'c-mode-hook (lambda() (local-set-key (kbd "<RET>") 'electric-indent-just-newline)))


4

How to Debug? It's tough to spot until you know what you're looking for, but in the middle of the stacktrace you see that the byte-compiled functions are calling python-shell-completion-get-completions. You can step through this function with edebug to see what's happening, or you can appeal to divine inspiration to conclude that it ultimately sends the ...


4

I think I've found the problem and a work-around. If you look at the python.el file, you will find this function to determine the path to the python executable: (defun python-shell-parse-command () ;FIXME: why name it "parse"? "Calculate the string used to execute the inferior Python process." ;; FIXME: process-environment doesn't seem to be used ...


4

The problem lies in the self compiled libjpeg-9.dll. It is solved by downloading dll files from ezwinports as recommended: Emacs can also support some other image formats with appropriate libraries. These libraries are all available on the following sites: 1. http://sourceforge.net/projects/ezwinports/files/ -- leaner, more up-to-date builds, only for ...


4

You have two choices: Place all the associated libraries within the emacs\bin folder. This will allow them to be linked as needed Place all associated libraries in a folder found on you %PATH%. I prefer doing it this way because it ensures that I keep the libraries in place following upgrades. c:\bin\ +- emacs\ (directory softlink to desired emacs ...


4

Might be that the package "s" was removed from emacs default packages or that you had it somehow installed on the previous version. The package is available on the melpa repository. Try this in your init.el (.emacs) (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (package-initialize) Then use M-x ...


4

Many installations of emacs 24 have the AUCTeX package activated in the default set-up. The keybindings you are seeing come from that package, and you should look at its manual instead to find descriptions of them. If you don't wish to use AUCTeX, then may be you can uninstall it by running list-packages and deleting the package. If not then may be https:...


4

To add to what @Malabarba said, I think the problem here is that smartparens should provide an API that does not rely on a macro. The "normal" way this works with usual packages is that the major mode can just do something like: (when (boundp 'smartparens-thingies) (push mythingies smartparens-thingies)) or even (setq smartparens-extra-thingies ...


4

I am the author of nXhtml. Unfortunately I do not have time to fix this. If someone want to try to fix it I would be glad to answer questions and support the effort though.


3

You'll notice that you're using a variable called auto-save-file-name-transforms. Since *scratch* has no filename, it falls back to autosaving in default-directory. For the *scratch* buffer, or any other buffers like this with no filename, you can use: (setq-local default-directory "~/.emacs.d/data/autosave") Edit: I see that you don't really care about ...


3

It's surprising that there is no way to configure this. You can choose whether the Author: header should appear, but Summary: is jammed in by default no matter what. I had to redefine a function: (load "log-edit") (defun log-edit-insert-message-template () "Insert the default template." (interactive) (when (or (called-interactively-p 'interactive) ...


3

The easiest way to do this is to just manually update the colors for what you need. I suggest: a. taking a look at all the helm faces: M-xcustomize-groupRET helm. There you can browse to the one you want to customize, and just do it. (Read the description to find what every one is about.) b. If you already know what you want to customize: M-xcustomize-...


3

Is there a way to include this kind of "maybe evaluation" in a byte-compiled file, without confusing the byte-compiler? For example, is it possible to tell the compiler "do not compile this form"? Yes, you can quote it and then eval it: (eval '(sp-whatever ...)). This will not be seen by the compiler and will only be expanded at runtime. Or what would be ...


2

Found help on GitHub, here is what should be done when attempting at removing a property: (set-face-attribute 'helm-selection nil :underline 'unspecified) See the GitHub issue: https://github.com/emacs-helm/helm/issues/697#issuecomment-62362671.


Only top voted, non community-wiki answers of a minimum length are eligible