aboutsummaryrefslogtreecommitdiff
path: root/hcel-outline.el
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-09-21 15:14:50 +1000
committerYuchen Pei <hi@ypei.me>2022-09-21 15:14:50 +1000
commitdae8c96bfdcf81ff6e39890de2d3d1be788e552f (patch)
treec7879510ed692b02f45575ed16bd1e3673d0ea83 /hcel-outline.el
parent0d47d10cfe4ed7fb8ea7b8013b6593c868be8391 (diff)
Fixing some compile warnings
Diffstat (limited to 'hcel-outline.el')
-rw-r--r--hcel-outline.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/hcel-outline.el b/hcel-outline.el
index c40ccf1..d485844 100644
--- a/hcel-outline.el
+++ b/hcel-outline.el
@@ -17,7 +17,9 @@
;; You should have received a copy of the GNU Affero General Public
;; License along with hcel. If not, see <https://www.gnu.org/licenses/>.
+(require 'hcel-utils)
(require 'hcel-source)
+(require 'outline)
(defvar hcel-outline-buffer-name "*hcel-outline*")
(defvar hcel-outline-indentation 2)
@@ -37,9 +39,7 @@
kmap))
(define-derived-mode hcel-outline-mode outline-mode "hcel-outline"
"Major mode for browsing Haskell codebases."
- (setq-local package-filter nil
- module-filter nil
- outline-regexp "\\( *\\)."
+ (setq-local outline-regexp "\\( *\\)."
outline-level (lambda () (1+ (/ (length (match-string 1))
hcel-outline-indentation)))
buffer-read-only t)
@@ -116,7 +116,7 @@ update in the outline mode too."
'package-id package-id
'module-path module
'folded t)))
- (hcel-list-modules (print package-id)))))))
+ (hcel-list-modules package-id))))))
(defun hcel-outline-toggle-children ()
(interactive)