Fixed typo, and cleaned up the org section.

This commit is contained in:
larstvei 2014-09-18 00:45:42 +02:00
parent 95ceb0dcf5
commit 18be40c001
3 changed files with 21 additions and 6 deletions

View File

@ -227,6 +227,7 @@ configurations are also dependent on them).
elscreen ; window session manager
expand-region ; Increase selected region by semantic units
flx-ido ; flx integration for ido
idle-require ; load elisp libraries while Emacs is idle
ido-vertical-mode ; Makes ido-mode display vertically.
geiser ; GNU Emacs and Scheme talk to each other
haskell-mode ; A Haskell editing mode
@ -660,7 +661,7 @@ the languages in ISPELL-LANGUAGES when invoked."
```
`Flyspell` signals an error if there is no spell-checking tool is
installed. We can advice `turn-on=flyspell` and `flyspell-prog-mode` to
installed. We can advice `turn-on-flyspell` and `flyspell-prog-mode` to
only try to enable `flyspell` if a spell-checking tool is available. Also
we want to enable cycling the languages by typing `C-c l`, so we bind the
function returned from `cycle-languages`.
@ -695,6 +696,12 @@ be themed as they would in their native mode.
```lisp
(setq org-src-fontify-natively t
org-confirm-babel-evaluate nil)
```
This is quite an ugly fix for allowing code markup for expressions like
`"this string"`, because the quotation marks causes problems.
```lisp
(require 'org)
(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
(custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))
@ -970,9 +977,6 @@ using `C-c C-c` (instead of `M-x compile`), a habit from `latex-mode`.
(defun c-setup ()
(local-set-key (kbd "C-c C-c") 'compile))
(require 'auto-complete-c-headers)
(add-to-list 'ac-sources 'ac-source-c-headers)
(add-hook 'c-mode-common-hook 'c-setup)
```

View File

@ -510,7 +510,7 @@ the languages in ISPELL-LANGUAGES when invoked."
(car (setq ispell-languages (cdr ispell-languages)))))))
;; =Flyspell= signals an error if there is no spell-checking tool is
;; installed. We can advice =turn-on=flyspell= and =flyspell-prog-mode= to
;; installed. We can advice =turn-on-flyspell= and =flyspell-prog-mode= to
;; only try to enable =flyspell= if a spell-checking tool is available. Also
;; we want to enable cycling the languages by typing =C-c l=, so we bind the
;; function returned from =cycle-languages=.
@ -538,6 +538,10 @@ the languages in ISPELL-LANGUAGES when invoked."
(setq org-src-fontify-natively t
org-confirm-babel-evaluate nil)
;; This is quite an ugly fix for allowing code markup for expressions like
;; ="this string"=, because the quotation marks causes problems.
(require 'org)
(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
(custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))

View File

@ -635,7 +635,7 @@
#+END_SRC
=Flyspell= signals an error if there is no spell-checking tool is
installed. We can advice =turn-on=flyspell= and =flyspell-prog-mode= to
installed. We can advice =turn-on-flyspell= and =flyspell-prog-mode= to
only try to enable =flyspell= if a spell-checking tool is available. Also
we want to enable cycling the languages by typing =C-c l=, so we bind the
function returned from =cycle-languages=.
@ -670,6 +670,13 @@
#+BEGIN_SRC emacs-lisp
(setq org-src-fontify-natively t
org-confirm-babel-evaluate nil)
#+END_SRC
This is quite an ugly fix for allowing code markup for expressions like
="this string"=, because the quotation marks causes problems.
#+BEGIN_SRC emacs-lisp
(require 'org)
(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
(custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))