Similarly, I use engine-mode (https://github.com/hrs/engine-mode) with Emacs, which allows you to set up basically any search engine. I use Google (on C-c / g) and Github (on C-c / h), but the engine-mode readme explains how to set it up with DuckDuckGo, stack overflow, etc.
It's configurable, but results can be displayed in eww, Emacs' built-in text-based web browser.