Skip to content

Configuration instructions for automatically enabling completions#22

Open
rudedogg wants to merge 1 commit intonathankot:masterfrom
rudedogg:master
Open

Configuration instructions for automatically enabling completions#22
rudedogg wants to merge 1 commit intonathankot:masterfrom
rudedogg:master

Conversation

@rudedogg
Copy link

Copied from #15

@rudedogg
Copy link
Author

Sorry I didn't use a feature branch for this. If you'd rather I close this and create a new PR using one I can.

Copy link
Owner

@nathankot nathankot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @rudedogg! Happy to merge after considering the comments :)


### Automatically turn on completions

Completions will not be loaded automatically in `Swift` mode. To enable them, add the following to your emacs init file *(use `SPC-f-e-i` to open it in spacemacs)*:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change Swift mode to swift-mode? :)
Also not sure if the spacemacs comment is necessary - is it common for a spacemacs user to not know where the init file is?


Completions will not be loaded automatically in `Swift` mode. To enable them, add the following to your emacs init file *(use `SPC-f-e-i` to open it in spacemacs)*:
```elisp
(add-hook 'swift-mode-hook (lambda ()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm could you remove the preceding whitespace, also personally I use:

(add-to-list 'company-backends 'company-sourcekit)

However that depends on your list of backends all checking the mode and passing through correctly (vs. short-circuiting)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants