Cleanup; and enable auto-completion
This commit is contained in:
parent
867b840266
commit
8f622e6bea
3 changed files with 5 additions and 9 deletions
|
@ -7,10 +7,10 @@
|
|||
(progn
|
||||
(require 'auto-complete-config)
|
||||
|
||||
(setq ac-auto-start nil
|
||||
(setq ac-auto-start t
|
||||
ac-auto-show-menu t ; Suggestions box must be invoked manually (see core-keymaps.el)
|
||||
ac-use-menu-map t ; Enable ac-menu-map map when menu is open
|
||||
ac-use-quick-help nil ; Don't show tooltips unless invoked (see core-keymaps.el)
|
||||
ac-use-quick-help t ; Don't show tooltips unless invoked (see core-keymaps.el)
|
||||
ac-use-fuzzy nil
|
||||
ac-candidate-limit 25)
|
||||
(setq ac-comphist-file (concat *tmp-dir "ac-comphist.dat"))
|
||||
|
|
|
@ -5,13 +5,9 @@
|
|||
("/README\\'" . markdown-mode))
|
||||
:pre-load
|
||||
(progn
|
||||
;; Implement strike-through formatting
|
||||
(defvar markdown-regex-del "\\(^\\|[^\\]\\)\\(\\(~\\{2\\}\\)\\([^ \n \\]\\|[^ \n ]\\(?:.\\|\n[^\n]\\)*?[^\\ ]\\)\\(\\3\\)\\)")
|
||||
(defun markdown-insert-del ()
|
||||
"Insert markup to make a region or word bold.
|
||||
If there is an active region, make the region bold. If the point
|
||||
is at a non-bold word, make the word bold. If the point is at a
|
||||
bold word or phrase, remove the bold markup. Otherwise, simply
|
||||
insert bold delimiters and place the cursor in between them."
|
||||
(interactive)
|
||||
(let ((delim "~~"))
|
||||
(if (markdown-use-region-p)
|
||||
|
|
|
@ -165,7 +165,7 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Real go-to-definition for elisp
|
||||
(nmap emacs-lisp-mode-map "gd"
|
||||
(mmap emacs-lisp-mode-map "gd"
|
||||
(λ (let ((func (function-called-at-point)))
|
||||
(if func (find-function func)))))
|
||||
|
||||
|
@ -183,7 +183,7 @@
|
|||
(kbd "<tab>") 'ac-complete
|
||||
(kbd "C-n") 'ac-next
|
||||
(kbd "C-p") 'ac-previous
|
||||
(kbd "<F1>") 'ac-quick-help
|
||||
(kbd "S-C-SPC") 'ac-quick-help
|
||||
(kbd "ESC") 'ac-stop
|
||||
(kbd "RET") 'ac-complete))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue