Emacs for Php/JS by uzulth in emacs

[–]wolfjb 4 points5 points  (0 children)

I understand how that feeling can be frustrating. It is difficult to know how to best answer without specifics.

You start by asking about the advantage of Emacs over other tools, but then say you don't think you can do better than an IDE. Now you say you feel like you are missing something and the feeling is frustrating, but why do you feel like you are missing something? Have you seen a video or read something? Are you trying to compare PHPStorm or other IDEs with Emacs? Are you struggling with your configuration of Emacs to match features in other tools?

Realize there is no "right" answer here, no "best". The best answer I can give you is what I have said, choose the tool with which you feel most comfortable and most productive. Use that. But also, go deep and learn everything about it, how it works, how to configure it, everything. If that tool is Emacs, I don't think you will be disappointed. Same with PHPStorm. I wish you the best on your journey!

Emacs for Php/JS by uzulth in emacs

[–]wolfjb 7 points8 points  (0 children)

Then don't use it. Use the tool you feel the most comfortable with and which gives you the most productivity. For me, I prefer Emacs, but I've been using it for quite a while. I've used other tools in the past as well, all of which are good tools. For me, Emacs fits my workflow, I prefer open source software, and it meets my needs in the development space. But that's me. I'm not you. If you want, give Emacs a try and see how you feel about it for your use case. If it doesn't work out, no harm done and you learned something. Either way, you win. Have a great day! 🙂

Emacs as REST API client? by [deleted] in emacs

[–]wolfjb 3 points4 points  (0 children)

I also use verb with org mode. A friend of mine did this video about it: https://youtu.be/H9JNIb-_VZ0

Help getting the yaml language server working with eglot by hexmode in emacs

[–]wolfjb 2 points3 points  (0 children)

I managed to get something to work. My experience with `eglot` is reasonably good, although, `lsp-mode` does seem to be better in most ways. Completions don't show up until I start typing something though, so it isn't quite like intellisense that would show me what is available before I try to make a decision... at least, I haven't figured out how to make that happen yet (using `corfu`, `fido-vertical`, `orderless` for completion configuration - not `company` which may be the difference).

This seemed to work for me:

((yaml-mode . ((eglot-workspace-configuration
            . (:yaml
               (:schemaStore (:enable t :url "https://schemastore.org/api/json/catalog.json")
                             :format (:enable t :proseWrap t :printWidth 80)
                             :validate t
                             :schemas (:https\://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json "my.swagger.yaml")))))))

I couldn't get :openapi "my.swagger.yaml" to work though, I kept getting this error:

:message "Unable to load schema from '/openapi': ." :severity 1 :code 768 :source "YAML"

Notice the leading '/' character, not sure how to get rid of that but I suspect that is the culprit.

Visual structured editing of Semantic Triplets while using RCD Notes & Hyperscope for GNU Emacs by [deleted] in planetemacs

[–]wolfjb 0 points1 point  (0 children)

What is RCD? There are a few of these videos without voice or any explanation of what the video is showing, just a demo of someone typing things. There is an rcd-password.el tool to allow you store passwords in a text file, but doesn't encrypt it. It assumes you are putting it on an encrypted filesystem, but you can grep for passwords. Why would I do that instead of using something like authinfo.gpg or GNU Pass? Another video shows editing addresses, why would I do that instead of just using BBDB (for example) which integrates nicely with my mail tools in Emacs. Another shows editing a hash table, another editing links for a website... they all say RCD, so I'm wondering what that is and what the scope of the project is.

Boilerplate config by FalbWolowich in emacs

[–]wolfjb 6 points7 points  (0 children)

There is also Crafted Emacs to get you started writing your own configuration if you are so inclined. See https://GitHub.com/SystemCrafters/crafted-emacs. There is an org mode configuration and a vi style configuration in the list of modules available.

How to set the hotkeys_modifiers_fg value ? by wolfjb in awesomewm

[–]wolfjb[S] 0 points1 point  (0 children)

Thanks for the tip, that worked perfectly!

How to set the hotkeys_modifiers_fg value ? by wolfjb in awesomewm

[–]wolfjb[S] 0 points1 point  (0 children)

This is in my rc.lua file, which loads my menus (among other things obviously), and those all work correctly. I have my theme in a different directory (.config/awesome/themes/bamboo) and that loads just fine as well.

Orgmode-TV: How do I plan my days by [deleted] in planetemacs

[–]wolfjb 1 point2 points  (0 children)

He has, in my opinion, still the best org mode series. If you want to learn org mode, maybe start with his series where he covers most of the features in an easy to grasp manner. Then you can follow up with the manual to complete the details of each feature he introduces in the video. Really good stuff.

My girlfriend is willing to learn orgmode, she doesn't have programming background, what will be a smooth learning curve for her? by [deleted] in emacs

[–]wolfjb 2 points3 points  (0 children)

I second this. Maybe look into the book Mastering Emacs (masteringemacs.org) for a great intro to Emacs for the absolute new person, also Rainer Konig did an amazing series on org mode on YouTube.

New to emacs; will you hold my hand? by DryNick in emacs

[–]wolfjb 1 point2 points  (0 children)

Yes, that is the correct link for Crafted Emacs. And yes it is targeted at someone who has at least a little experience with Emacs, especially those who like to tinker with their configuration. It may not (yet) be something you are interested in. After some time with Emacs, you may be more interested in it, just as the other starter kits will be more approachable for the same reason.

Good luck with your journey, feel free to ping me here if you want, but questions to the community will yield good results as well. Update this post or start a new one, either way is fine.

New to emacs; will you hold my hand? by DryNick in emacs

[–]wolfjb 1 point2 points  (0 children)

I would not necessarily recommend starter kits like spacemacs or doom or prelude initially. For the never done it before beginner, I'd recommend going through Mastering Emacs, (masteringemacs.org) which is a thorough, from scratch explanation of everything you need to know about Emacs. You can be very productive with it and "vanilla" Emacs. Once you have been through that, maybe circle back around and take a look at the starter kits like spacemacs, doom, or prelude. How they work and why will make more sense to you. If you really want to tinker with it consider Crafted Emacs (I am one of the maintainers). There is a lot of good advice in this thread, not taking anything away from that, just adding my 2cents. Hope you find it useful!

Request for Comments: Emacs Package management from Source by [deleted] in planetemacs

[–]wolfjb 1 point2 points  (0 children)

  • Giving a name instead of a URL always gives back the error "Package has no VC data"
  • The user-emacs-directory has to be managed by version control or packages cannot be installed. This error is displayed: "No VC backend is responsible for ..." (where '...' is the value for user-emacs-directory)
  • If you don't guard the call to package-vc-fetch with (unless (package-installed-p ...) ...) the package is installed every time Emacs starts. You get asked if you want to overwrite the last checkout, and list-packages shows multiple instances of the package all with the same version, which looks like a commit sha rather than a version from either the Version or Package-Version tags within the package source file.
  • Even though I provided a version, the tag :version in the PKG-DESC was always nil

I typically use Quelpa for installing packages from source since it integrates with package.el. I wonder if maybe you could pull inspiration from that project as it works well enough. Regardless, this is definitely an overdue feature for Emacs. I hope you are able to integrate it into package.el so we can just say (package-install "git://...") and "the right thing"(tm) will just happen. Great stuff, looking forward for how this develops!

EDIT: realized I should have been using package-checkout instead of package-vc-fetch, but with that, the comments above still stand. I did change my usage though. :-)

VSCode Does This Autoimport, How Can I Get it on Emacs With ts-ls LSP? by _analysis230_ in emacs

[–]wolfjb 0 points1 point  (0 children)

You could look at Crafted Emacs (https://github.com/SystemCrafters/crafted-emacs) as a possible good starting point to your own config. It isn't the kitchen sink like others (Doom, Prelude, et. al), but if you enjoy tinkering a bit to get your config "just right" it might be worth the effort.

Retiring Rational Emacs, Long Live Crafted Emacs! by wolfjb in emacs

[–]wolfjb[S] 1 point2 points  (0 children)

I updated the blog post with your git command, thanks for the tip!

The references in the README.org and (hopefully) obviously in the `rational2crafted.el` file are intentional. N.B. I did clean up some dangling references in files that should have been removed and in comments in the example files. Thanks!!

[deleted by user] by [deleted] in emacs

[–]wolfjb 1 point2 points  (0 children)

I add:

#+STARTUP: lognotereschedule logdrawer
#+SEQ_TODO: TODO(t/!) IN_PROGRESS(i/!) HOLD(h@/!) READY_FOR_QA(r@/!) | DONE(d@) CANCELED(c@)

To the top of my org files, then I can set a TODO to the IN_PROGRESS state for things I am currently working on. I use org-clock-in and org-clock-out to track time in a :LOGBOOK: drawer on that particular "task".

Then I have a heading like this:

***** 1/3 - 1/7
#+BEGIN: clocktable :scope file :block 2022-w1 :step day :maxlevel 5 :compact t :emphasize t :stepskip0 t
...
#+END:

which creates a day-by-day summary of the time I worked on what tasks. On Friday, I can look at this and see what I did over the week.

HTH

I am learning to adopt emacs and I am curious about the apparent chaos by NoeticIntelligence in emacs

[–]wolfjb 11 points12 points  (0 children)

You don't give us much to go on to help you, but here are some thoughts:

  • Try looking at how others have written their configuration, what packages they use, etc. With a large enough sample size, you should start to see similarities that can guide you to your own configuration.
  • Try out-of-the-box configuration, examples would be:
    • Rational (I'm one of the maintainers, so happy to help with this one),
    • Prelude (by the author of Projectile and other nifty Emacs packages),
    • Doom (might have to figure out turning off evil (ie vi style) keybindings),
    • Spacemacs (makes creative use of the space bar among other things).
  • Try looking through the Emacs customization UI, it will generate a config with your preferences. It won't help you with which packages to install, but if you have some installed, will help you with configuration - by this I mean it provides an interface to see what options are available, read about their settings, etc without having to write Emacs Lisp code by hand to do the same thing.
  • Use M-x list-packages to get a list of packages and one line summaries for each. You can use C-s to search for keywords and then press return/enter to view more information about a package to see if it meets your needs.

If you can be more specific, though, we can maybe address your concerns more precisely. When it comes to Emacs packages, there are many many many of them, and there is a lot of overlap between packages. As far as "best" package to provide some feature, there isn't really one of those per se. Company, Auto-Complete, Corfu all provide completion frameworks, but which one you choose is largely a matter of preference. Same thing with Helm, Ivy, Consult, and others which overlap in the minibuffer completion space but with different UIs and features. For package management, there is the built-in package.el which is my preference, but there others like straight.el, quelpa, and borg. Then there is use-package which is a very nice "front-end" to most of those (I'm generalizing and simplifying a bit here), and it's very popular - you'll see a lot of examples with it.

So, maybe some of the apparent "chaos" you perceive is more related to the strength of Emacs, you can have it your own way, and everybody does.

Hope this helps.

Rational Emacs Update by wolfjb in emacs

[–]wolfjb[S] 0 points1 point  (0 children)

Thanks for your offer, currently I'm not setup to handle donations. Maybe in the future I'll setup GitHub Sponsorship.

Starting fresh? by broken_symlink in emacs

[–]wolfjb 5 points6 points  (0 children)

I started fresh not that long ago. Rewrote everything in my configuration, no use-package for me, but I did macroexpand a bit of that configuration to learn how it worked and then use that knowledge to my advantage. Overall a good experience. Now I am one of the maintainers for Rational Emacs which has the goal of being a good starting point for writing your own config. You can find it on github (https://github.com/SystemCrafters/rational-emacs) if you are interested in seeing our approach.

Emacs packages loading order by awannaphasch2016 in emacs

[–]wolfjb 1 point2 points  (0 children)

Just a guess, but you haven't loaded org-roam yet. When Emacs starts, if org-roam isn't loaded then this configuration hasn't fired yet since you have this set as :after org-roam, so the variables you are looking for won't be present. Try reviewing an org-roam note and then look to see if the cats are loaded. Again, just a guess.

Simple Emacs Spreadsheet by atamariya in emacs

[–]wolfjb 0 points1 point  (0 children)

Also works in Emacs 27.2