Commit Graph

178 Commits

Author SHA1 Message Date
200fd52b61 Fix invalid-function error due to missing backquote
Mentioned in #3020
2020-05-28 22:01:23 -04:00
dc3c2f9e78 [review] no extension in load! / rename interactive function 2020-05-28 13:13:00 +02:00
0f5c5bb288 Move and map interactive eglot/c++ function 2020-05-28 12:01:35 +02:00
718d9a2690 [review] Changes 2020-05-28 11:17:55 +02:00
3e5b7cce3f [eglot] Add support for eglot lsp client in emacs
- Update README
- Add eglot-specifics to cc, rs, py, hs
  removing unused lsp-mode packages when eglot is active
- Add eglot-specific bindings
- Add doctor warnings for debugger +lsp and +peek
- Add eglot-backed lookup-handlers
- Add flycheck checker using eglot for :checkers
  syntax users (using flycheck/flycheck#1676 and
  flycheck/flycheck#1592 discussion).
  This implementation is based on @marsam code, and uses recent
  Flycheck development in order to make the code smaller and
  easier to maintain.
2020-05-28 09:34:10 +02:00
428cb15c7a Suppress args out of range error in C++ buffers
When you use iedit or multiple cursors.
2020-04-14 00:12:40 -04:00
5033215150 Fix #2789: wrong init hooks for irony & rtags 2020-03-29 01:29:27 -04:00
e8aecdd514 Bump :lang cc
MaskRay/emacs-ccls@e5cc4c3 -> MaskRay/emacs-ccls@17ec7bb
Sarcasm/irony-mode@8387098 -> Sarcasm/irony-mode@5f75fc0
Andersbakken/rtags@31f7842 -> Andersbakken/rtags@d370c09

Remove :pin from {ivy,helm}-rtags since they come from the same repo as
rtags.
2020-03-27 16:24:24 -04:00
169f9a6121 General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00
7aca54ab91 Bump ccls & {,ivy-,helm-}rtags
MaskRay/ccls@aab3e31 -> MaskRay/ccls@e5cc4c3
Andersbakken/rtags@92c5126 -> Andersbakken/rtags@31f7842
2020-02-11 17:47:49 -05:00
2322bff412 Fix typo: ffap-list -> ffap-alist 2020-02-07 01:35:46 +01:00
22bf716e43 Fix gf/find-file-at-point in c-mode 2020-02-06 16:55:28 -05:00
a9402cfb55 Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
be1e4015d5 Fix broken MacOS irony-mode building command.
Found same issue described here: https://www.reddit.com/r/emacs/comments/d0kxj4/ironymode_installing_server_help/
2020-01-16 21:23:35 -08:00
4cc14389e8 PIN ALL THE PACKAGES 2020-01-14 22:32:11 -05:00
12094788d7 Fix references to :tools fly{spell,check} 2020-01-14 03:04:26 -05:00
6523f6a12e Move cpp-mode{,-map} aliases to autoloads
They don't need to be in config.el
2020-01-03 05:49:43 -05:00
967390fe6c lang/cc: add system libs to default ccls init options on mac 2019-12-13 14:24:17 -05:00
da07b63f40 lang/cc: fix #2097 wrong-type-arg listp on c-default-style 2019-11-21 14:21:56 -05:00
caed1f2d1a Use CMake docset for cmake-mode 2019-11-19 09:58:52 +10:00
6b327dfcca lang/cc: fix default style in C/C++ modes
c-default-style wasn't being used correctly.
2019-10-24 17:03:08 -04:00
009cfbcb90 lang/cc: fix false negatives from rc/rdm checks #1864 2019-10-23 16:07:59 -04:00
1968a2ad1c Fix typo in CC README (gompany -> company) 2019-10-08 20:07:44 +13:00
01fa9ec169 lang/cc: update README 2019-10-07 12:59:11 -04:00
d297dc6934 Minor refactor & comment revision across the board 2019-10-03 23:33:59 -04:00
de6afec944 Merge pull request #1851 from alexandergraul/add-openSUSE-prerequisites
Add openSUSE prerequisite instructions
2019-10-03 12:09:37 -04:00
b7a98cc788 Add openSUSE prerequisite instructions
These instructions were tested on openSUSE Tumbleweed and openSUSE Leap
15.1. There are some modules left that are not documented yet, but this
already improves the sitution for common openSUSE users.
2019-10-03 16:01:35 +02:00
7ffc5d3134 Call renamed hook in the +cc/reload-compile-db autoload 2019-09-01 16:23:04 +03:00
af26a14230 lang/cc: decouple lsp init from ccls package 2019-08-27 00:05:13 -04:00
720a8abf17 use emacsmirror for cmake-mode and protobuf-mode
to avoid giant git repos
2019-08-13 09:40:23 -07:00
a3e262c7ac 💥 Refactor add-hook! macro & change arg order
This update may potentially break your usage of add-hook! if you pass
the :local or :append properties to it. This is how they used to work:

  (add-hook! :append 'some-mode-hook #'do-something)

Thsoe properties must now follow the hooks, e.g.

  (add-hook! 'some-mode-hook :append #'do-something)

Other changes:
- Various add-hook calls have been renamed to add-hook! because I
  incorrectly assumed `defun` always returned its definition's symbol,
  when in fact, its return value is "undefined" (so sayeth the
  documentation). This should fix #1597.
- This update adds the ability to add multiple functions to hooks
  without a list:

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

- The indentation logic has been changed so that consecutive function
  symbols at indented at the same level as the first argument, but forms
  are indent like a defun.

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

    (add-hook! 'some-mode-hook
      (message "Hello"))
2019-07-26 20:17:29 +02:00
f25ec72253 lang/cc: fix stringp errors when loading rtags
Binary checks for rtags expect rtags-rc-binary-name and
rtags-rdm-binary-name to always be non-nil.
2019-07-24 15:25:42 +02:00
76cacb5bfe 💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
60acdcb962 lang/cc: conform to new conventions 2019-07-22 23:52:16 +02:00
8482f26d51 Move cc modes smartparen functions to config/default 2019-07-22 23:51:39 +02:00
b90dede1ab 💥 Replace package.el/quelpa with straight #374
There are a few kinks to iron out, but for the most part it's done. Doom
Emacs, powered by straight. Goodbye gnutls and elpa/quelpa issues.

This update doesn't come with rollback or lockfile support yet, but I
will eventually include one with Doom, and packages will be (by default,
anyway) updated in sync with Doom.

Relevant threads: #1577 #1566 #1473
2019-07-22 02:30:40 +02:00
2ff762b397 Fix fd/rtags on debian/ubuntu
On debian/ubuntu, these executables have a different name:

- fd -> fdfind
- rc -> rtags-rc
- rdm -> rtags-rdm
2019-07-14 22:04:50 +02:00
62af55dad0 Move emacs-snippets -> doom-snippets
The repo was renamed upstream.
2019-07-14 17:05:48 +02:00
7c9e9a3446 Move lsp! to local-vars hooks
- Set lsp-java-server-install-dir
- Use lsp! instead of lsp in lang/cc
2019-07-07 01:58:08 +02:00
9a02bd8ac8 Minor refactors across the board
- when-let* -> when-let
- Fix projectile-locate-dominating-file for connected remote files
2019-06-26 14:31:06 +02:00
3474e6bf09 lang/cc: move smartparens config to config/default 2019-05-22 03:50:53 -04:00
d4ff90219e lang/cc: remove +irony and +rtags flags from docs
They were removed a while back. Irony and rtags (et co) will be disabled
if +lsp is enabled, or can be disabled through package! declarations:

  ;; in ~/.doom.d/packages.el
  (package! irony :disable t)
  (package! rtags :disable t)
2019-04-24 18:16:05 -04:00
c399c07694 Add :tools lsp checks for +lsp flag
Also:
- Reorganizes some :lang modules' packages.el file.
- Adds setuptools check in lang/python
- Adds javac check in lang/java
- Removes the depends-on! macro
2019-04-24 18:16:05 -04:00
a4c5396558 Add better-jumper
Replaces evil's jumplist; makes its functionality available for non evil
users.
2019-04-24 18:16:04 -04:00
77e4cc4d58 💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00
742687a51e Add delq! and pushnew! macros
And move projectile configs to their respective modules (and out of
package configs).
2019-04-08 23:01:30 -04:00
be4bae4acf Fix cc fontification for constants with numbers 2019-03-07 01:35:22 +10:00
0bd576673c Refactor lang/cc
+ Fix ffap integration
+ Code reduction for irony, rtags and lsp init hooks
+ Use c-add-style instead of unless+push
+ Log that irony server isn't installed
2019-03-02 01:51:51 -05:00
6fc7b8c1c4 Better electric-indent uninhibiter
Will now work in C modes as well as Csharp, Java and Python; possibly
others that forcibly set electric-indent-inhibit.
2019-02-27 18:38:28 -05:00
c3a6d38da4 Fix void-variable rtags-rdm-binary-name error 2019-02-27 03:13:11 -05:00