emacs - disable company mode in org-mode
authorPeng Li <seudut@gmail.com>
Fri, 9 Sep 2016 15:35:34 +0000 (23:35 +0800)
committerPeng Li <seudut@gmail.com>
Fri, 9 Sep 2016 15:35:34 +0000 (23:35 +0800)
emacs.d/config.org
study-note.org

index 710c43e..2e25361 100644 (file)
@@ -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
index 711cc94..e9cc7d9 100644 (file)
@@ -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