Appease the byte-compiler
This commit is contained in:
parent
c935f3e4da
commit
cbc59f9333
9 changed files with 14 additions and 13 deletions
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +hideshow-haml-forward-sexp (arg)
|
(defun +hideshow-haml-forward-sexp (arg)
|
||||||
(haml-forward-sexp)
|
(haml-forward-sexp arg)
|
||||||
(move-beginning-of-line 1))
|
(move-beginning-of-line 1))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +hideshow-forward-block-by-indent (arg)
|
(defun +hideshow-forward-block-by-indent (_arg)
|
||||||
(let ((start (current-indentation)))
|
(let ((start (current-indentation)))
|
||||||
(forward-line)
|
(forward-line)
|
||||||
(unless (= start (current-indentation))
|
(unless (= start (current-indentation))
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
;;; lang/haskell/autoload.el -*- lexical-binding: t; -*-
|
;;; lang/haskell/autoload.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +haskell-repl-buffer ()
|
(defun +haskell-repl-buffer (arg)
|
||||||
"Returns the appropriate Haskell REPL buffer."
|
"Returns the appropriate Haskell REPL buffer."
|
||||||
(if (featurep! +intero)
|
(if (featurep! +intero)
|
||||||
(intero-repl-buffer arg)
|
(intero-repl-buffer arg)
|
||||||
|
@ -11,5 +11,5 @@
|
||||||
(defun +haskell/repl (&optional arg)
|
(defun +haskell/repl (&optional arg)
|
||||||
"Opens a Haskell REPL."
|
"Opens a Haskell REPL."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(display-buffer (+haskell-repl-buffer)))
|
(display-buffer (+haskell-repl-buffer arg)))
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
(?t . "\\textcite[]{%l}"))
|
(?t . "\\textcite[]{%l}"))
|
||||||
reftex-plug-into-AUCTeX t
|
reftex-plug-into-AUCTeX t
|
||||||
reftex-toc-split-windows-fraction 0.3)
|
reftex-toc-split-windows-fraction 0.3)
|
||||||
(unless +latex-bibtex-file
|
(when +latex-bibtex-file
|
||||||
(setq reftex-default-bibliography (list (expand-file-name +latex-bibtex-file))))
|
(setq reftex-default-bibliography (list (expand-file-name +latex-bibtex-file))))
|
||||||
(map! :map reftex-mode-map
|
(map! :map reftex-mode-map
|
||||||
:localleader :n ";" 'reftex-toc)
|
:localleader :n ";" 'reftex-toc)
|
||||||
|
@ -38,5 +38,5 @@
|
||||||
(define-key bibtex-mode-map (kbd "C-c \\") #'bibtex-fill-entry))
|
(define-key bibtex-mode-map (kbd "C-c \\") #'bibtex-fill-entry))
|
||||||
|
|
||||||
(after! bibtex-completion
|
(after! bibtex-completion
|
||||||
(unless +latex-bibtex-file
|
(when +latex-bibtex-file
|
||||||
(setq bibtex-completion-bibliography (list (expand-file-name +latex-bibtex-file)))))
|
(setq bibtex-completion-bibliography (list (expand-file-name +latex-bibtex-file)))))
|
||||||
|
|
|
@ -37,7 +37,7 @@ file isn't in `org-directory'."
|
||||||
(when (and (not (nth 2 args))
|
(when (and (not (nth 2 args))
|
||||||
buffer-file-name
|
buffer-file-name
|
||||||
(file-in-directory-p buffer-file-name org-directory))
|
(file-in-directory-p buffer-file-name org-directory))
|
||||||
(cl-destructuring-bind (extension &optional subtreep pubdir) args
|
(cl-destructuring-bind (extension &optional subtreep _pubdir) args
|
||||||
(let ((dir (expand-file-name +org-export-dir org-directory)))
|
(let ((dir (expand-file-name +org-export-dir org-directory)))
|
||||||
(unless (file-directory-p dir)
|
(unless (file-directory-p dir)
|
||||||
(make-directory dir t))
|
(make-directory dir t))
|
||||||
|
|
|
@ -37,7 +37,7 @@ keep them left and right aligned respectively."
|
||||||
(while (keywordp (car body))
|
(while (keywordp (car body))
|
||||||
(setq body (cddr body)))
|
(setq body (cddr body)))
|
||||||
;;
|
;;
|
||||||
(cl-destructuring-bind (&key init faces on-hooks on-set activate deactivate &allow-other-keys)
|
(cl-destructuring-bind (&key init faces on-hooks on-set &allow-other-keys)
|
||||||
rest
|
rest
|
||||||
(let ((realvar (if (and body faces)
|
(let ((realvar (if (and body faces)
|
||||||
(intern (format "+modeline--var-%s" name))
|
(intern (format "+modeline--var-%s" name))
|
||||||
|
|
|
@ -21,14 +21,14 @@
|
||||||
"The function that returns the buffer name display for file-visiting
|
"The function that returns the buffer name display for file-visiting
|
||||||
buffers.")
|
buffers.")
|
||||||
|
|
||||||
|
;; Convenience aliases
|
||||||
|
(defvaralias 'mode-line-format-left '+modeline-format-left)
|
||||||
|
(defvaralias 'mode-line-format-right '+modeline-format-right)
|
||||||
;;
|
;;
|
||||||
(defvar-local +modeline-format-left () "TODO")
|
(defvar-local +modeline-format-left () "TODO")
|
||||||
(defvar-local +modeline-format-right () "TODO")
|
(defvar-local +modeline-format-right () "TODO")
|
||||||
(put '+modeline-format-left 'risky-local-variable t)
|
(put '+modeline-format-left 'risky-local-variable t)
|
||||||
(put '+modeline-format-right 'risky-local-variable t)
|
(put '+modeline-format-right 'risky-local-variable t)
|
||||||
;; Convenience aliases
|
|
||||||
(defvaralias 'mode-line-format-left '+modeline-format-left)
|
|
||||||
(defvaralias 'mode-line-format-right '+modeline-format-right)
|
|
||||||
|
|
||||||
;; externs
|
;; externs
|
||||||
(defvar anzu--state nil)
|
(defvar anzu--state nil)
|
||||||
|
|
|
@ -173,7 +173,7 @@ the command buffer."
|
||||||
(set-popup-rule! "^\\*helm" :ignore t)
|
(set-popup-rule! "^\\*helm" :ignore t)
|
||||||
|
|
||||||
;; Fix left-over popup window when closing persistent help for `helm-M-x'
|
;; Fix left-over popup window when closing persistent help for `helm-M-x'
|
||||||
(defun +popup*helm-elisp--persistent-help (candidate fun &optional name)
|
(defun +popup*helm-elisp--persistent-help (candidate _fun &optional _name)
|
||||||
(let (win)
|
(let (win)
|
||||||
(when (and (helm-attr 'help-running-p)
|
(when (and (helm-attr 'help-running-p)
|
||||||
(string= candidate (helm-attr 'help-current-symbol))
|
(string= candidate (helm-attr 'help-current-symbol))
|
||||||
|
|
|
@ -212,6 +212,7 @@ restoring it if `+popup-buffer-mode' is disabled."
|
||||||
(let ((m (if (bound-and-true-p +popup-buffer-mode) +popup-margin-width)))
|
(let ((m (if (bound-and-true-p +popup-buffer-mode) +popup-margin-width)))
|
||||||
(set-window-margins nil m m)))))
|
(set-window-margins nil m m)))))
|
||||||
|
|
||||||
|
(defvar hide-mode-line-format)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +popup|set-modeline-on-enable ()
|
(defun +popup|set-modeline-on-enable ()
|
||||||
"Don't show modeline in popup windows without a `modeline' window-parameter.
|
"Don't show modeline in popup windows without a `modeline' window-parameter.
|
||||||
|
|
|
@ -92,7 +92,7 @@ Pretty symbols can be unset for emacs-lisp-mode with:
|
||||||
(if (null (car-safe rest))
|
(if (null (car-safe rest))
|
||||||
(delq (assq mode +pretty-code-symbols-alist)
|
(delq (assq mode +pretty-code-symbols-alist)
|
||||||
+pretty-code-symbols-alist)
|
+pretty-code-symbols-alist)
|
||||||
(let (results merge key alist)
|
(let (results merge key)
|
||||||
(while rest
|
(while rest
|
||||||
(setq key (pop rest))
|
(setq key (pop rest))
|
||||||
(pcase key
|
(pcase key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue