Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emacs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Hauspie
emacs
Commits
c371bfe0
Commit
c371bfe0
authored
2 months ago
by
Michael Hauspie
Browse files
Options
Downloads
Patches
Plain Diff
Add tweaks to compile window
parent
c5e5a2a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configuration.org
+20
-1
20 additions, 1 deletion
configuration.org
with
20 additions
and
1 deletion
configuration.org
+
20
−
1
View file @
c371bfe0
...
@@ -826,10 +826,29 @@ information from a language server dedicated to the programming
...
@@ -826,10 +826,29 @@ information from a language server dedicated to the programming
language currently in use.
language currently in use.
First, configure the compilation buffer so that it scrolls to the end or to the first encountered
First, configure the compilation buffer so that it scrolls to the end or to the first encountered
error if any
error if any
and sets its height.
#+begin_src emacs-lisp
#+begin_src emacs-lisp
(setq compilation-scroll-output 'first-error)
(setq compilation-scroll-output 'first-error)
(setq compilation-window-height 15)
(defun my-select-bottom-window ()
(let ((bottom-window (selected-window))
window-below)
(while (setq window-below (window-in-direction 'below bottom-window))
(setq bottom-window window-below))
(select-window bottom-window)))
(defun my-compilation-hook ()
(when (not (get-buffer-window "*compilation*"))
(save-selected-window
(save-excursion
(my-select-bottom-window)
(let* ((w (split-window-vertically))
(h (window-height w)))
(select-window w)
(switch-to-buffer "*compilation*")
(shrink-window (- h compilation-window-height)))))))
(add-hook 'compilation-mode-hook 'my-compilation-hook)
#+end_src
#+end_src
** LSP
** LSP
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment