Skip to content

Commit

Permalink
Fix new line indentation bug on Go mode
Browse files Browse the repository at this point in the history
The issue appears to be conflicting configurations between
clean-aindent-mode and a go-mode post-command hook. This is meant to be a
temporary solution and should be removed as soon as the underlying issue
is solved.

Issue: syl20bnr/spacemacs#6520
  • Loading branch information
jqmtor committed Mar 8, 2017
1 parent 3d51a86 commit 1973492
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spacemacs/spacemacs.symlink
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ values."
))

(defun dotspacemacs/user-init ()
"Initialization function for user code.
"Initialization function fo
It is called immediately after `dotspacemacs/init', before layer configuration
executes.
This function is mostly useful for variables that need to be set
Expand All @@ -259,7 +259,11 @@ layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place you code here."
)

;; TODO: remove when fixed
;; This is a quick fix to solve this issue: https://github.com/syl20bnr/spacemacs/issues/6520
(remove-hook 'post-command-hook 'clean-aindent--check-last-point)
(add-hook 'post-command-hook 'clean-aindent--check-last-point))

;; Do not write anything past this comment. This is where Emacs will
;; auto-generate custom variable definitions.

0 comments on commit 1973492

Please sign in to comment.