mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Fixed typo, and cleaned up the org section.
This commit is contained in:
parent
95ceb0dcf5
commit
18be40c001
12
README.md
12
README.md
@ -227,6 +227,7 @@ configurations are also dependent on them).
|
|||||||
elscreen ; window session manager
|
elscreen ; window session manager
|
||||||
expand-region ; Increase selected region by semantic units
|
expand-region ; Increase selected region by semantic units
|
||||||
flx-ido ; flx integration for ido
|
flx-ido ; flx integration for ido
|
||||||
|
idle-require ; load elisp libraries while Emacs is idle
|
||||||
ido-vertical-mode ; Makes ido-mode display vertically.
|
ido-vertical-mode ; Makes ido-mode display vertically.
|
||||||
geiser ; GNU Emacs and Scheme talk to each other
|
geiser ; GNU Emacs and Scheme talk to each other
|
||||||
haskell-mode ; A Haskell editing mode
|
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
|
`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
|
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
|
we want to enable cycling the languages by typing `C-c l`, so we bind the
|
||||||
function returned from `cycle-languages`.
|
function returned from `cycle-languages`.
|
||||||
@ -695,6 +696,12 @@ be themed as they would in their native mode.
|
|||||||
```lisp
|
```lisp
|
||||||
(setq org-src-fontify-natively t
|
(setq org-src-fontify-natively t
|
||||||
org-confirm-babel-evaluate nil)
|
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)
|
(require 'org)
|
||||||
(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
|
(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
|
||||||
(custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))
|
(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 ()
|
(defun c-setup ()
|
||||||
(local-set-key (kbd "C-c C-c") 'compile))
|
(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)
|
(add-hook 'c-mode-common-hook 'c-setup)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
6
init.el
6
init.el
@ -510,7 +510,7 @@ the languages in ISPELL-LANGUAGES when invoked."
|
|||||||
(car (setq ispell-languages (cdr ispell-languages)))))))
|
(car (setq ispell-languages (cdr ispell-languages)))))))
|
||||||
|
|
||||||
;; =Flyspell= signals an error if there is no spell-checking tool is
|
;; =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
|
;; 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
|
;; we want to enable cycling the languages by typing =C-c l=, so we bind the
|
||||||
;; function returned from =cycle-languages=.
|
;; function returned from =cycle-languages=.
|
||||||
@ -538,6 +538,10 @@ the languages in ISPELL-LANGUAGES when invoked."
|
|||||||
|
|
||||||
(setq org-src-fontify-natively t
|
(setq org-src-fontify-natively t
|
||||||
org-confirm-babel-evaluate nil)
|
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)
|
(require 'org)
|
||||||
(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
|
(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
|
||||||
(custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))
|
(custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))
|
||||||
|
9
init.org
9
init.org
@ -635,7 +635,7 @@
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
=Flyspell= signals an error if there is no spell-checking tool is
|
=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
|
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
|
we want to enable cycling the languages by typing =C-c l=, so we bind the
|
||||||
function returned from =cycle-languages=.
|
function returned from =cycle-languages=.
|
||||||
@ -670,6 +670,13 @@
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq org-src-fontify-natively t
|
(setq org-src-fontify-natively t
|
||||||
org-confirm-babel-evaluate nil)
|
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)
|
(require 'org)
|
||||||
(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
|
(setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,")
|
||||||
(custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))
|
(custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))
|
||||||
|
Loading…
Reference in New Issue
Block a user