From: Peng Li Date: Fri, 9 Sep 2016 15:35:34 +0000 (+0800) Subject: emacs - disable company mode in org-mode X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=0edd9dc87f8730ef9913a0dc11deb47a15d89d1a;p=dotfiles.git emacs - disable company mode in org-mode --- diff --git a/emacs.d/config.org b/emacs.d/config.org index 710c43e..2e25361 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1510,7 +1510,8 @@ brew install the-silver-searcher (define-key dired-mode-map (kbd "TAB") 'diredp-next-subdir) (define-key dired-mode-map (kbd "K") 'diredp-prev-subdir) (define-key dired-mode-map (kbd "O") 'dired-display-file) - (define-key dired-mode-map (kbd "I") 'other-window)) + (define-key dired-mode-map (kbd "I") 'other-window) + (define-key dired-mode-map (kbd "o") 'other-window)) (use-package dired :config @@ -1681,7 +1682,8 @@ here on Mac, just use "open" commands to pen =.pdf=, =.html= and image files ;; should map both (kbd "TAB") and [tab],https://github.com/company-mode/company-mode/issues/75 (define-key company-active-map (kbd "TAB") #'company-complete-selection) (define-key company-active-map [tab] #'company-complete-selection) - (global-company-mode)) + (global-company-mode) + (setq company-global-modes '(not org-mode))) (use-package company-statistics :ensure t diff --git a/study-note.org b/study-note.org index 711cc94..e9cc7d9 100644 --- a/study-note.org +++ b/study-note.org @@ -159,5 +159,13 @@ configuration. Mode hooks are therefore run later than =eval-after-load= code; t actions baed upon such information as whether other modes are enabled in the current buffer. #+END_QUOTE +* ObjectiveC +** =#import= vs. =#include= +[[http://stackoverflow.com/questions/439662/what-is-the-difference-between-import-and-include-in-objective-c][what-is-the-difference-between-import-and-include-in-objective-c]] +- =#import= directive as added to Objective-C as an improvied version of =#include= +- =#import= ensures that a file is only ever included onces so that you never have a problem with recursive includes +- Bacically, use =#import= for Objective-C thins, =#include= for C stufff. +* Books +** Intruduction to Algorithms