You can run the command `find-file' with C-x C-fUsing TAB for completion can be a little slow. Here are two ways to make that and a whole lot of other things faster: ido and helm. To explore these approaches, you will need to add the MELPA package repository to your configuration. To set that up, add the following to the beginning of your
(package-initialize) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
helmpackage. Then you can try it out with M-x helm-mode . After you start Helm mode, try M-x again. You can type in multiple words to search for a command, and you can use <up> and <down> to go through completions. Use M-p and M-n to go through your command history. If you like it, here's some code that you can add to your
~/.emacs.d/init.elfile to load it automatically next time, and to tweak it for more convenience.
(require 'helm-config) (helm-mode 1)
helm-mode, you can toggle it off with M-x helm-mode . If you like how that works, you may want to
(global-set-key (kbd "M-x") 'helm-M-x). If you do, you'll be able to see keybindings when you call commands with
M-x. Note that if you want to use a prefix argument (ex:
C-u), you will need to do that after calling
M-xinstead of before.
Ido, ido-hacks, smex, ido-vertical-mode, and flx-ido
(helm-mode 1)from your
~/.emacs.d/init.el(if you added it), and disable helm-mode if you still have it active from the previous section. To set Ido up, use M-x package-install to install
flx-ido. After the packages are installed, add the following code to your
(ido-mode 1) (require 'ido-hacks nil t) (if (commandp 'ido-vertical-mode) (progn (ido-vertical-mode 1) (setq ido-vertical-define-keys 'C-n-C-p-up-down-left-right))) (if (commandp 'smex) (global-set-key (kbd "M-x") 'smex)) (if (commandp 'flx-ido-mode) (flx-ido-mode 1))
describe-key). For example, M-x calls the command
execute-extended-command. That way, even if you forget the keyboard shortcut, you can call the command by name. If you forget the name of the command and you don't know the keyboard shortcut for it, you can look for it in the menus or in the help file. You can open the help file with C-h i (
info). You can also use M-x apropos-command to search through the commands that you can call with M-x. Make your own cheat sheet with frequently-used keyboard shortcuts and commands to help you learn more about Emacs. Good luck! You can download the MP3 from archive.org.