Commit graph

14 commits

Author SHA1 Message Date
syl20bnr 012375839f c-c++ layer: rename default mode for header variable
New name is `c-c++-default-mode-for-headers`, possible values are
`c-mode` or `c++-mode`.
2015-05-31 23:09:27 -04:00
Craig Eales a78c59cf2d Add option to open .h files with c++-mode
Remove default auto-mode-alist mapping from *.h to c++-mode.
Introduce a variable and use that in the init: section of cc-mode to
conditionally update the auto-mode-alist.
Updated the documentation.

Conflicts:
	contrib/!lang/c-c++/README.md
2015-05-31 23:03:00 -04:00
Török Edwin e57c8aa095 ocaml: comment out auto-complete initialization code
to make sure only one completion engine is active
2015-05-31 22:52:05 -04:00
Török Edwin f23aa2b0da ocaml layer: Add key bindings
- enable ocamldoc in company completion
- enable merlin-document binding
- add binding for ML <-> MLI switch
- bind most merlin commands

user visible change:
  printing type at point was moved to SPC mht, and SPC mhT asks for an expression
  SPC mgg/mgG is now consistent with CONVENTIONS.md, and
  SPC mgb can be used to go back(in addition to default C-c &)
2015-05-31 22:51:27 -04:00
Török Edwin ab1a1eae60 ocaml: fix flycheck
but keep it disabled (need to test interaction with auto-complete and company)
2015-05-31 22:48:46 -04:00
Török Edwin 264a3c2019 ocaml: support both auto-complete and company 2015-05-31 22:34:16 -04:00
mike-work 872b26e0ed Add company-mode hook for lua 2015-05-31 17:47:35 -04:00
Tu Do 7f90d99a48 Fix Python and Semantic integration
When no Python executable is detected, Semantic causes an error that it cannot
retrieve include paths from the executable, causing an error that prevents
Python buffer to be switched and error is repeatedly reported whenever a Python
buffer is opened. This commit ignores the error from
semantic-python-get-system-include-path that is called when Semantic setup
itself for a Python buffer.
2015-05-27 23:50:58 -04:00
syl20bnr a514f6f569 Add TODO for python inferior process key bindings 2015-05-27 23:49:19 -04:00
Tu Do ae48bd866b [Fix #1668] Don't enable Vim key bindings if holy-mode 2015-05-27 23:45:13 -04:00
Bjarke Vad 78b39f1f72 ghci-ng for haskell-process-do-type-on-prev-line` 2015-05-27 23:29:08 -04:00
Tu Do fafb9c4b3e Enable company in Python REPL for code completion
- Company should be enabled in Python REPL for displaying completion
candidates. Note that in Python REPL, we must use company-capf to
display the candidates from Python REPL, since in the REPL it uses
completion-at-point to display candidates from the REPL. Also, we
locally set company-minimum-prefix-length to 0, so that completion
starts immediately after the first character. We also need to set the
idle delay a bit higher (0.5) compared with Spacemacs default (0.2),
since setting it too low may cause company unable to retrieve completion
candidates.

- Anaconda should NOT be enabled in Python REPL for retrieving proper
completion candidates. This can be tested in Python REPL: when
anaconda-mode is enabled and without any prefix string before point, run
the command completion-at-point (bound to C-M-i by default), completion
candidates from Anaconda are displayed but NOT the ones from the real
REPL. So, when you import a module i.e. os and try to access the
functions in the module with "os." prefix, nothing inside the module is
displayed because Anaconda does not work in Python REPL. When
anaconda-mode is disabled, candidates in "os." are displayed properly
with company-capf. company-anaconda backend cannot be used in Python
REPL since it is buggy: it cannot retrieve any prefix before point and
narrow properly.
2015-05-25 23:39:05 -04:00
jupl 5d7199a905 Turn on rainbow-delimiters for LESS and SCSS 2015-05-25 23:34:46 -04:00
Tristan Hume eecb250a55 Prefix categories with ! 2015-05-25 00:50:38 -04:00