Bladeren bron

let there be colour

Basil Shubin 7 jaren geleden
bovenliggende
commit
68d37573fd
1 gewijzigde bestanden met toevoegingen van 29 en 29 verwijderingen
  1. 29 29
      README.md

+ 29 - 29
README.md

@@ -44,18 +44,18 @@ that.)
 ## Ido itself ##
 
 First, enable `ido-mode` and `ido-everywhere`.
-
-    (ido-mode 1)
-    (ido-everywhere 1)
-
+```elisp
+(ido-mode 1)
+(ido-everywhere 1)
+```
 ## ido-completing-read+ (this package) ##
 
 Install this package [from MELPA](http://melpa.org/#/ido-completing-read+)
 and then turn on `ido-ubiquitous-mode`:
-
-    (require 'ido-completing-read+)
-    (ido-ubiquitous-mode 1)
-
+```elisp
+(require 'ido-completing-read+)
+(ido-ubiquitous-mode 1)
+```
 ## Smex ##
 
 Smex allows you to use ido for completion of commands in M-x, with
@@ -63,25 +63,25 @@ enhancements like putting your most-used commands at the front of the
 list. First install the [smex](https://github.com/nonsequitur/smex)
 package, then follow the directions to load it and replace your normal
 M-x key-binding with smex:
-
-    (require 'smex) ; Not needed if you use package.el
-    (smex-initialize) ; Can be omitted. This might cause a (minimal) delay
-                      ; when Smex is auto-initialized on its first run.
-    (global-set-key (kbd "M-x") 'smex)
-    (global-set-key (kbd "M-X") 'smex-major-mode-commands)
-    ;; This is your old M-x.
-    (global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)
-
+```elisp
+(require 'smex) ; Not needed if you use package.el
+(smex-initialize) ; Can be omitted. This might cause a (minimal) delay
+                  ; when Smex is auto-initialized on its first run.
+(global-set-key (kbd "M-x") 'smex)
+(global-set-key (kbd "M-X") 'smex-major-mode-commands)
+;; This is your old M-x.
+(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)
+```
 (These directions are the same ones given in the smex README file.)
 
 ## ido-yes-or-no ##
 
 If you want to use ido for yes-or-no questions, even though it's
 massive overkill, install my [ido-yes-or-no package from MELPA](http://melpa.org/#/ido-yes-or-no), and then enable the mode:
-
-    (require 'ido-yes-or-no)
-    (ido-yes-or-no-mode 1)
-
+```elisp
+(require 'ido-yes-or-no)
+(ido-yes-or-no-mode 1)
+```
 ## ido for `describe-face` and certain other commands ##
 
 Some commands, such as `describe-face`, use `completing-read-multiple`
@@ -92,10 +92,10 @@ which would then use ido thanks to ido-ubiquitous-mode. First, install
 the [crm-custom](https://github.com/DarwinAwardWinner/crm-custom)
 package [from MELPA](http://melpa.org/#/crm-custom), then enable the
 mode:
-
-    (require 'crm-custom)
-    (crm-custom-mode 1)
-
+```elisp
+(require 'crm-custom)
+(crm-custom-mode 1)
+```
 Make sure to read and understand the FAQ entry below about the empty
 entry at the beginning of the completion list before using this mode,
 or using it will likely be very confusing.
@@ -117,10 +117,10 @@ For any case where ido cannot be used, there is another older mode
 called `icomplete-mode` that integrates with standard emacs completion
 and adds some ido-like behavior. It is built in to emacs, so no
 installation is necessary. Just load the file and enable the mode:
-
-    (require 'icomplete)
-    (icomplete-mode 1)
-
+```elisp
+(require 'icomplete)
+(icomplete-mode 1)
+```
 # Frequently asked questions #
 
 ## How does ido-ubiquitous-mode decide when to replace `completing-read`? <br/> Why don't some commands use ido completion? ##