You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
EmacsLisp
36 lines
1.2 KiB
EmacsLisp
;;; $DOOMDIR/penguin/completions.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
(require 'helm-make)
|
|
(require 'ansi-color)
|
|
|
|
(setq helm-make-list-target-method 'qp)
|
|
|
|
;; Stopped using this and posframe because it breaks tty emacs
|
|
;; (defun penguin-helm-posframe-size-function ()
|
|
;; "The default functon used by `helm-posframe-size-function'."
|
|
;; (list
|
|
;; :width (/ (frame-width) 2)
|
|
;; :height (or helm-posframe-height helm-display-buffer-height)
|
|
;; :min-height (or helm-posframe-min-height
|
|
;; (let ((height (+ helm-display-buffer-height 1)))
|
|
;; (min height (or helm-posframe-height height))))
|
|
;; :min-width (or helm-posframe-min-width
|
|
;; (let ((width (round (* (frame-width) 0.62))))
|
|
;; (min width (or helm-posframe-width width))))))
|
|
|
|
;; (setq helm-posframe-size-function #'penguin-helm-posframe-size-function)
|
|
|
|
(after! company
|
|
(set-company-backend!
|
|
'emacs-lisp-mode
|
|
'(:separate
|
|
company-capf company-files))
|
|
(set-company-backend!
|
|
'sh-mode
|
|
'(:separate
|
|
company-capf company-shell company-files)))
|
|
|
|
;; fix compilation buffer error which wouldn't let me jump to errors
|
|
(add-hook 'compilation-filter-hook 'ansi-color-compilation-filter)
|