Hot answers tagged

31

Use the snapshot: sudo add-apt-repository -y ppa:ubuntu-elisp sudo apt-get update sudo apt-get install emacs-snapshot


22

In addition to what abo-abo suggests, you can also build the sources by yourself: git clone git://git.savannah.gnu.org/emacs.git cd emacs sudo apt-get build-dep emacs24 # for rpm-based linux: sudo yum-builddep emacs ./configure # if there's no configure script: ./autogen.sh make # if that fails: make bootstrap ...


15

Stable versions (25.1 currently): sudo apt-add-repository -y ppa:adrozdoff/emacs sudo apt update sudo apt install emacs25 Provided packages for LTS 14.04 and 16.04.


12

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 ...


6

No, there isn't, if you don't want to silence your background processes. You could use something like tmux or GNU Screen for your background processes. Or you could run them in another terminal. But Emacs has no way of knowing that some other process is outputting characters to the terminal, as far as I know.


5

In emacs, Ctl-L will refresh the screen, removing any extra stuff written by your background process. If the background process only emits stuff every once in a while, then you can just refresh each time.


5

In general, a terminal application like emacs -nw has only very limited information about what colors are available. The shell will have an environment variable called TERM which contains the name of the terminal you're using. The application can then use a library such as terminfo to pick the right escape sequences to use each feature of the terminal. This ...


4

Probably emacs24-nox is the package you want instead.


4

It looks like Ubuntu is using it's own numbering system, 45.0ubuntu1 vs 24.4. This may be tricking dpkg into thinking that the Ubuntu version (which appears to be 24.3) is actually newer than your compiled 24.4. Debian (and thus Ubuntu) provides emacs in a number of different packages, to allow users to stick to a particular version, track the latest release,...


4

I'm pretty sure that the answer is: try another font. There was quite a lot of discussion about this problem recently in the thread for bug #20628 of the Emacs bug list. You will even see some info about particular fonts there, which might be helpful for your particular question. Oh, and note that there were some changes made to how Emacs picks a font, as ...


3

Make sure that your $TERM is set correctly before running Emacs. If launching direct from the terminal, check with echo $TERM - preferably its value would be xterm-256color Set it either directly before you run Emacs: TERM=xterm-256color emacs -nw With any other arguments you need. As a more permanent solution, set the value of TERM in your terminal ...


3

The fg job control command should work if you run from the same terminal where you entered Control-z. To find out what processes are available to be placed in the fore ground use the jobs command. If jobs does not list your Emacs process, you're in the wrong shell.


3

I recommend you first dpkg --remove xemacs21 (and maybe also for related packages like xemacs21-support, xemacs21-mule, xemacs21-nomule, xemacs21-bin, ...), after which the update should work again. Once that is done, you can try to re-install XEmacs (tho, of course, I'd recommend you switch to Emacs instead).


3

For those who want to run stable emacs 25.1 on Ubuntu 16.10, I pulled the source package from zenity-proposed and pushed it to my ppa for yakkety, so you can install as follows: sudo add-apt-repository ppa:aperomsik/aap-ppa sudo apt-get update sudo apt-get install emacs25


2

Try a different font. It works for me in DejaVu Mono but doesn't in some others.


2

All files under /usr should be world-readable. They're system files that cam be obtained by anyone over the Internet, so there'd be no point in preventing local users from reading them. (There may be exceptions for proprietary software, but even so it is very uncommon to have non-world-readable files under /usr.) The fact that /usr/share/emacs/25.2/lisp is ...


2

Assuming that ctrl-c ctrl-x is bound to execute-interpret, then the system should prompt you with the command to run, suggesting as a default /path/to the/script/test.sh as a default. Edit this default value to put single quotes around the whole thing. A different way would be to change the command to be run to ./test.sh. I suspect that when you say But ...


2

#+BEGIN_SRC plantuml :file my_file.jpg gives you a jpg file #+BEGIN_SRC plantuml :file my_file.png gives you a png file #+BEGIN_SRC plantuml :file my_file.txt gives you a txt file #+BEGIN_SRC plantuml :file my_file.svg gives you a svg file The images are produced by imagemagick


1

The directory where you put multi-term.el needs to be in your load path. Add this to your .emacs before the 'require' call: (add-to-list 'load-path "/home/test/.emacs.d") EDIT This should fix your problem, but as @phil points out, it's bad practice to store lisp code in your .emacs.d directory, and it may cause unexpected problems later on. You should ...


1

I had the same issue. After looking at the source code I figured out it is expecting a file name as a parameter. This code should work: #+BEGIN_SRC plantuml :file plantuml.svg @startuml (*) --> "First Activity" -->[You can put also labels] "Second Activity" --> (*) @enduml #+END_SRC


1

For sake of completeness. A look at ESS on GitHub or r-sig-debian required me to download: http://dirk.eddelbuettel.com/tmp/elpa-ess_17.11-4_all.deb http://dirk.eddelbuettel.com/tmp/ess_17.11-4_all.deb and to install them via: dpkg -i ess_17.11-4_all.deb elpa-ess_17.11-4_all.deb Works for me on 18.04. Edit: The CRAN repository has been updated ...


1

You can define your own shortcut that executes the command x-terminal-emulator -e emacs -nw


1

I think source/bin is not an executable. Maybe the good command is: . $PATH_TO_VIRTUALENV/bin/activate or source $PATH_TO_VIRTUALENV/bin/activate


1

There are several possible ways that Emacs/TLS can be misconfigured but it seems likely this is simply a duplicate of the question you linked, especially given your distribution's GnuTLS version matching the version I am testing with. My answer is likely to be the cause.


1

In order to avoid conficts with the standard package you should give a custom name to the one you build, for example adding the suffix "local-build".


1

Here's the workaround that I mentioned: (defun db48x/shell-quote-arg-list (args) (mapcar 'shell-quote-argument args)) (advice-add 'executable-interpret :filter-args 'db48x/shell-quote-arg-list '(name escape-command-name)) This tells emacs to run the db48x/shell-quote-arg-list function on the argument list any time anyone calls executable-interpret. This ...


1

A search for "emacs apt wrapper" revealed https://github.com/xwl/ga, "generic apt(from Debian GNU/Linux) like wrapper over various package management tools". Another result was https://www.emacswiki.org/emacs/EmacsForDebian, which has even more options.


1

You can ask emacs this question directly. Use C-h f scroll-up-command RET to open the help for this function; it'll say also what key or keys it's bound to. It's probably C-v and <next> (useful should you have a keyboard with a 'next' key).


1

Using Hunspell spellchecking program First of all, you should install hunspell and after that add Greek Dictionary sudo apt install hunspell Download and Add greek dictionary to Hunspell dictionaries' path cp el_GR.dic el_GR.aff /usr/share/hunspell Let's test Hunspell at terminal: hunspell -d el_GR and then mistype a greek word. Secondly, it be ...


1

Following the advice of @zck and @wvxvw, I opened emacs using the -Q option, and this caused the errors not to appear. Hence, I concluded that the errors were raised within my .emacs file. Inside that file, I had the following lines: (load-file "~/cedet-1.0pre7/common/cedet.el") (global-ede-mode 1) (semantic-load-enable-code-helpers) (global-srecode-minor-...


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