.emacs-my
changeset 1462 9587cf641288
parent 1461 2b12d4f7f8a4
child 1463 4c92e9fc2efd
equal deleted inserted replaced
1461:2b12d4f7f8a4 1462:9587cf641288
  3373 (add-to-list 'auto-mode-alist '("\\.cygport\\'" . shell-script-mode))
  3373 (add-to-list 'auto-mode-alist '("\\.cygport\\'" . shell-script-mode))
  3374 
  3374 
  3375 (defun my/sh-company-setup ()
  3375 (defun my/sh-company-setup ()
  3376   (make-local-variable 'company-backends)
  3376   (make-local-variable 'company-backends)
  3377   (setq company-backends '((company-capf company-files company-dabbrev-code)))
  3377   (setq company-backends '((company-capf company-files company-dabbrev-code)))
       
  3378   (make-local-variable 'company-dabbrev-code-other-buffers)
       
  3379   (setq company-dabbrev-code-other-buffers t)
  3378   (company-mode 1))
  3380   (company-mode 1))
  3379 
  3381 
  3380 (when (featurep 'company)
  3382 (when (featurep 'company)
  3381   (add-hook 'sh-mode-hook #'my/sh-company-setup))
  3383   (add-hook 'sh-mode-hook #'my/sh-company-setup))
  3382 
  3384