all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: auto-complete
@ 2011-04-26 18:41 Andrea Crotti
  0 siblings, 0 replies; 14+ messages in thread
From: Andrea Crotti @ 2011-04-26 18:41 UTC (permalink / raw)
  To: dgiglio; +Cc: help-gnu-emacs

dgiglio@iol.it (daniele.g) writes:

>
> Can you post here your CEDET conf? 
>
> Thanks.

I have this configuration, a bit long and you don't need that much but
well here it is:
--8<---------------cut here---------------start------------->8---
(defun my-next-tag ()
  (interactive)
  (semantic-refresh-tags-safe)
  (senator-next-tag))

(defun activate-more-semantic-bindings ()
  "add some other nice bindings to modes supported by semantic"
  (interactive)
  (local-set-key (kbd "M-n") 'my-next-tag)
  (local-set-key (kbd "M-p") 'senator-previous-tag)
  (local-set-key "\C-cq" 'semantic-ia-show-doc)
  ;; TODO: the senator stuff should be enabled only where senator actually works!!
  (local-set-key [f6] 'senator-fold-tag-toggle)
  ;; narrows to the actual function or class analyzed
  ;; C-x n w to widen again
  (local-set-key "\C-xnn" 'semantic-narrow-to-tag)
  (local-set-key "\M-." 'semantic-complete-jump)
  (local-set-key "\M-?" 'semantic-ia-fast-jump))

(setq semantic-load-turn-everything-on t)
(global-ede-mode nil)
(setq ede-locate-setup-options '(ede-locate-global ede-locate-locate ede-locate-idutils))

(dolist 
    (hook '(python-mode-hook c-mode-common-hook emacs-lisp-mode-hook makefile-mode-hook))
  (add-hook hook 'activate-more-semantic-bindings))

(global-semantic-stickyfunc-mode 1)
;; (global-semantic-decoration-mode 1)
(global-semantic-highlight-func-mode 1)
(global-semantic-highlight-edits-mode 1)
(global-semantic-idle-scheduler-mode 1)
(global-semantic-idle-summary-mode 1)
(global-semantic-mru-bookmark-mode 1)

(defun my-c-like-cedet-hook ()
  (local-set-key [(control return)] 'semantic-ia-complete-symbol)
  (local-set-key "\C-c?" 'semantic-ia-complete-symbol-menu)
  (local-set-key "\C-c>" 'semantic-complete-analyze-inline)
  (local-set-key "\C-cj" 'semantic-ia-fast-jump)
  (local-set-key "\C-cq" 'semantic-ia-show-doc)
  (local-set-key "\C-cs" 'semantic-ia-show-summary)
  (local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle)
  (local-set-key "." 'semantic-complete-self-insert)
  (local-set-key ">" 'semantic-complete-self-insert))

(defun my-cpp-cedet-hook ()
  (local-set-key ":" 'semantic-complete-self-insert))

(global-semanticdb-minor-mode 1)
(require 'semanticdb-global)
--8<---------------cut here---------------end--------------->8---


-- 
GNU Emacs 24.0.50.1 (x86_64-apple-darwin10.7.0, NS apple-appkit-1038.35)
of 2011-04-23 on ip1-201.halifax.rwth-aachen.de



^ permalink raw reply	[flat|nested] 14+ messages in thread
* auto-complete
@ 2015-11-10 21:03 haris.bogdanovic
  2015-11-11  0:56 ` auto-complete John Mastro
  0 siblings, 1 reply; 14+ messages in thread
From: haris.bogdanovic @ 2015-11-10 21:03 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

This is my .emacs file:

; ----------------------------------------------------------

(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
                         ("marmalade" . "https://marmalade-repo.org/packages/")
                         ("melpa" . "http://melpa.org/packages/")))


(add-to-list 'load-path "C:/Users/h/AppData/Roaming/.emacs.d/elpa/slime-20150830.1446")
(require 'slime)
(add-hook 'lisp-mode-hook (lambda () (slime-mode t)))
(add-hook 'inferior-lisp-mode-hook (lambda () (inferior-slime-mode t)))

(setq inferior-lisp-program "C:/Users/h/ccl/wx86cl")

(add-to-list 'load-path "~/.emacs.d/elpa/ac-slime-20150729.2035")
;; enable autocomplete

(add-to-list 'load-path "~/.emacs.d/elpa/auto-complete-20150618.1949")
(add-to-list 'load-path "~/.emacs.d/elpa/popup-20150626.711")

(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/elpa/dictionary-20140717.2029")
(ac-config-default)
(global-auto-complete-mode t)
(auto-complete-mode t)

 (add-hook 'slime-mode-hook 'set-up-slime-ac)
 (add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
 (eval-after-load "auto-complete"
   '(add-to-list 'ac-modes 'slime-repl-mode))




(require 'ac-slime)
(add-hook 'slime-mode-hook 'set-up-slime-ac)



(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(blink-cursor-mode nil)
 '(show-paren-mode t)
 '(initial-frame-alist (quote ((fullscreen . maximized)))))


(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(slime)

; -----------------------------------------------------------

Why doesn't my auto-completion work ?
I am programming in Common Lisp and I want a dialog to pop up, with possible completions, in my REPL and .lisp files, while I'm typing.

Thanks


^ permalink raw reply	[flat|nested] 14+ messages in thread
* auto-complete
@ 2015-10-15 20:24 haris.bogdanovic
  2015-10-15 20:36 ` auto-complete Jai Dayal
  0 siblings, 1 reply; 14+ messages in thread
From: haris.bogdanovic @ 2015-10-15 20:24 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

This is my .emacs file:

; ----------------------------------------------------------

(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
                         ("marmalade" . "https://marmalade-repo.org/packages/")
                         ("melpa" . "http://melpa.org/packages/")))


(add-to-list 'load-path "C:/Users/h/AppData/Roaming/.emacs.d/elpa/slime-20150830.1446")
(require 'slime)
(add-hook 'lisp-mode-hook (lambda () (slime-mode t)))
(add-hook 'inferior-lisp-mode-hook (lambda () (inferior-slime-mode t)))

(setq inferior-lisp-program "C:/Users/h/ccl/wx86cl")

(add-to-list 'load-path "~/.emacs.d/elpa/ac-slime-20150729.2035")
;; enable autocomplete

(add-to-list 'load-path "~/.emacs.d/elpa/auto-complete-20150618.1949")
(add-to-list 'load-path "~/.emacs.d/elpa/popup-20150626.711")

(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/elpa/dictionary-20140717.2029")
(ac-config-default)
(global-auto-complete-mode t)
(auto-complete-mode t)

 (add-hook 'slime-mode-hook 'set-up-slime-ac)
 (add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
 (eval-after-load "auto-complete"
   '(add-to-list 'ac-modes 'slime-repl-mode))




(require 'ac-slime)
(add-hook 'slime-mode-hook 'set-up-slime-ac)



(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(blink-cursor-mode nil)
 '(show-paren-mode t)
 '(initial-frame-alist (quote ((fullscreen . maximized)))))


(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(slime)

; -----------------------------------------------------------

Why doesn't my auto-completion work ?

Thanks


^ permalink raw reply	[flat|nested] 14+ messages in thread
* auto-complete
@ 2015-10-04 20:12 Haris Bogdanović
  2015-10-06  1:24 ` auto-complete Dmitry Gutov
  2015-10-06  1:30 ` auto-complete Emanuel Berg
  0 siblings, 2 replies; 14+ messages in thread
From: Haris Bogdanović @ 2015-10-04 20:12 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

This is my .emacs file:

; -----------------------------------------------------------------


(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
                          ("marmalade" . 
"https://marmalade-repo.org/packages/")
                          ("melpa" . "http://melpa.org/packages/")))


(add-to-list 'load-path 
"C:/Users/h/AppData/Roaming/.emacs.d/elpa/slime-20150830.1446")
(require 'slime)
(add-hook 'lisp-mode-hook (lambda () (slime-mode t)))
(add-hook 'inferior-lisp-mode-hook (lambda () (inferior-slime-mode t)))

(setq inferior-lisp-program "C:/Users/h/ccl/wx86cl")

(add-to-list 'load-path "~/.emacs.d/elpa/ac-slime-20150729.2035")
;; enable autocomplete

(add-to-list 'load-path "~/.emacs.d/elpa/auto-complete-20150618.1949")
(add-to-list 'load-path "~/.emacs.d/elpa/popup-20150626.711")

(require 'auto-complete-config)
;; (add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
(ac-config-default)
;; (global-auto-complete-mode t)
(auto-complete-mode t)

  (add-hook 'slime-mode-hook 'set-up-slime-ac)
  (add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
  (eval-after-load "auto-complete"
    '(add-to-list 'ac-modes 'slime-repl-mode))




(require 'ac-slime)
(add-hook 'slime-mode-hook 'set-up-slime-ac)



(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(blink-cursor-mode nil)
  '(show-paren-mode t)
  '(initial-frame-alist (quote ((fullscreen . maximized)))))p
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  )

(slime)

; --------------------------------------------------------------------


Why auto-complete doesn't work ?
Do I press TAB key to auto-complete ?


Thanks




^ permalink raw reply	[flat|nested] 14+ messages in thread
* auto-complete
@ 2011-04-13 23:35 daniele.g
  2011-04-26  7:01 ` auto-complete Bernardo
  2011-04-26 17:26 ` auto-complete Andrea Crotti
  0 siblings, 2 replies; 14+ messages in thread
From: daniele.g @ 2011-04-13 23:35 UTC (permalink / raw)
  To: help-gnu-emacs

I've started using auto-complete.el while editing my C++ sources, it's
great... when auto completions occur. I mean, it seems it works only
with a per session db, when I start a new file it starts over with an
empty set of symbols to fill in again, and it's quite annoying.
Is there any way to keep the symbols between sessions. Or, better, make
AC scan my lib path to have a complete set of symbols once for all.

Thanks in andvance.
-- 
           Topaia, s.f.:
           	Grande spazio in cui vi sono bellissime ragazze.
           		-- Da it.hobby.umorismo




^ permalink raw reply	[flat|nested] 14+ messages in thread
* auto-complete
@ 2006-02-05 23:14 dunnil
  2006-02-06  4:16 ` auto-complete Stefan Monnier
  0 siblings, 1 reply; 14+ messages in thread
From: dunnil @ 2006-02-05 23:14 UTC (permalink / raw)


I've enabled auto-complete in emacs for ruby language, but it
auto-complete everything, even files in the current directory, what may

be the problem.
yep, I'm a newbie to this golden but hard to reach land!


Here is my .emacs file content:
(autoload 'ruby-mode "ruby-mode" "Ruby editing mode." t)
(setq auto-mode-alist  (cons '("\\.rb$" . ruby-mode) auto-mode-alist))
(setq auto-mode-alist  (cons '("\\.rhtml$" . html-mode)
auto-mode-alist))


(modify-coding-system-alist 'file "\\.rb$" 'utf-8-dos)
(modify-coding-system-alist 'file "\\.rhtml$" 'utf-8-dos)


(require 'rails)


(add-hook 'ruby-mode-hook
          (lambda()
            (add-hook 'local-write-file-hooks
                      '(lambda()
                         (save-excursion
                           (untabify (point-min) (point-max))
                           (delete-trailing-whitespace)
                           )))
            (set (make-local-variable 'indent-tabs-mode) 'nil)
            (set (make-local-variable 'tab-width) 2)
            (imenu-add-to-menubar "IMENU")
            (require 'ruby-electric)
            (ruby-electric-mode t) 
            ))

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-11-11  0:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26 18:41 auto-complete Andrea Crotti
  -- strict thread matches above, loose matches on Subject: below --
2015-11-10 21:03 auto-complete haris.bogdanovic
2015-11-11  0:56 ` auto-complete John Mastro
2015-10-15 20:24 auto-complete haris.bogdanovic
2015-10-15 20:36 ` auto-complete Jai Dayal
2015-10-04 20:12 auto-complete Haris Bogdanović
2015-10-06  1:24 ` auto-complete Dmitry Gutov
2015-10-06  1:30 ` auto-complete Emanuel Berg
2011-04-13 23:35 auto-complete daniele.g
2011-04-26  7:01 ` auto-complete Bernardo
2011-04-26 17:26 ` auto-complete Andrea Crotti
2011-04-26 18:07   ` auto-complete daniele.g
2006-02-05 23:14 auto-complete dunnil
2006-02-06  4:16 ` auto-complete Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.