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 [aliases]

The tag has no usage guidance.

0
votes
2answers
44 views

How to create a short name for tramp multihop path?

I connect to various locations, for example: /ssh:hostname|sudo:hostname:/ /ssh:hostname|sudo:hostname|docker:container:/ and want to have some kind of short aliases for these long paths. Something ...
1
vote
1answer
37 views

oddp vs cl-oddp in elisp script

I am trying to write a short script file with elisp for the first time which will serve me to install all the required packages that I use. Thus when I change from one computer to another, I can get ...
2
votes
2answers
1k views

two versions of emacs on mac osx - where are they

This has got to be a silly question... From a terminal window, to start emacs which comes with mac osx (version 22.1.1), I just type > emacs First set of questions: where is this emacs installed?...
1
vote
0answers
35 views

How to set eshell's ls command to different program in different OS?

Since result of /usr/bin/ls is more neat compares with eshell/ls when filenames contain non-lattin Unicodes. I add an alias in ~/.emacs.d/eshell/alias, which makes eshell use /usr/bin/ls as default: ...
0
votes
2answers
69 views

defalias derived mode to parent mode

I wrote a new major mode config-general-mode, which is derived from conf-mode. I like it a lot and want to have it as the default mode for all configuration files. Thus I tried: (defalias 'conf-mode '...
0
votes
2answers
344 views

How replace auto-complete-mode with company-mode in all major mode using it?

How I can replace auto-complete-mode with company-mode in all major mode using it? i.e. make all modes which activating auto-complete-mode (e.g. c-mode or sh-mode etc), activate company-mode instead ...
1
vote
1answer
142 views

Can you intercept a function and return your own value using advice?

Is it possible to use advice to not only run your function first, but also prevent the advised function from running at all? For example, say a command ordinarily calls read-from-minibuffer to get a ...
8
votes
1answer
131 views

How to create back/forward directory aliases for eshell?

For years I've been using a zsh script that causes a pushd to implicitly happen everytime you change directories. The script also sets up 'b' and 'f' aliases, short for backwards and forwards, that ...
0
votes
1answer
306 views

eshell alias not working properly

the following alias in the aliases file doesn't work in eshell 2.4.2, emacs 24.4.1 alias ff 'find-file $1' error message as is is given below find-file $1: command not found Any ideas what ...
2
votes
1answer
211 views

Is there some pitfalls if I define aliases for `cdr` and `car` functions?

I'm often obliged to read the documentation before using cdr and car functions. Is there pitfalls I should be aware of before aliasing those functions in my init file? Like: (defalias 'head 'car) (...