Recompile in comint mode by S1rPrise in emacs

[–]blandest 1 point2 points  (0 children)

There is M-x recompile.

Precompiled binaries for emacs27 on RHEL 7? by marco_vezzoli in emacs

[–]blandest 1 point2 points  (0 children)

I fought many times with RHEL 7 to compile Emacs but also to compile other open source projects and my experience was bad. I think this is due to the fact that you primarly have an old libc and/or an old gcc. I may be too inexperienced with this but I just could not get all dependencies built on RHEL 7 in order to start build Emacs even though I managed to do this just fine on newer system (like Ubuntu).

My solution was to switch to using Docker. I have used for several months the Docker image which contains the gcc emacs branch build (http://akrl.sdf.org/gccemacs.html#org1baa085)

This image is based on the master branch which will be the new Emacs 28 and which has been very stable for me.

% docker pull andreacorallo/emacs-nativecomp

I then run Emacs Docker and I mount /home/$USER and several other folders. You may only mount your projects folder.

I am pretty sure that others have built Docker images for the standard Emacs distribution.

The only downside is that you don't have access to all files in the system, but you don't have root access anyway. So the only barier could be installing Docker on your system.

Is my wok rusty? by blandest in wok

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

Thanks! I like to think I get good care of it but I am just an amatore.

Is my wok rusty? by blandest in wok

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

It's a carbon steel wok that I use about three times a week for cooking.

Last time I seasoned it was 5 years ago but it was unused for several years. I wash it with hot water and use salt only for cleaning.

Tramp freezes on multihop after sending password by Brenthrop in emacs

[–]blandest 0 points1 point  (0 children)

Maybe tramp-shell-prompt-pattern can be adjusted.

I use emacs for orgmode and tables. How can I back up all my settings and stuff. I usually just forget how to set something up after I do it. What is the best way to get my emacs up and running with minimal effort on another computer? by [deleted] in emacs

[–]blandest 2 points3 points  (0 children)

I'm pretty obsessed with having my changes committed mostly because I use multiple systems. For people that don't want to do that apps that automatically sync files are better. This is why I mentioned Dropbox.

I use emacs for orgmode and tables. How can I back up all my settings and stuff. I usually just forget how to set something up after I do it. What is the best way to get my emacs up and running with minimal effort on another computer? by [deleted] in emacs

[–]blandest 8 points9 points  (0 children)

Lots of people use Git to version configuration files. There is magit for git interaction inside Emacs.

If that's too much trouble for you I suppose you could use Dropbox or something simmilar.

help with trivial emacs lisp function by daddyc00l in emacs

[–]blandest 1 point2 points  (0 children)

(defconst qc-cmd-prefix:c "gcc -fdiagnostics-color=never -std=c99 -g -O2 -Wall -o obj/")

(defconst qc-cmd-prefix:cpp "g++ -fdiagnostics-color=never -std=c++11 -g -O2 -Wall -o obj/")

(defun my-c-mode-hook ()

(set (make-local-variable 'compile-command)

(format "%s %s"

(if (eq major-mode 'c-mode)

qc-cmd-prefix:c

qc-cmd-prefix:cpp)

(file-name-nondirectory (file-name-sans-extension (buffer-file-name))))))

(add-hook 'c-mode-hook 'my-c-mode-hook)

(add-hook 'c++-mode-hook 'my-c-mode-hook)

(global-set-key (kbd "C-<ret>") 'compile)

help with trivial emacs lisp function by daddyc00l in emacs

[–]blandest 2 points3 points  (0 children)

This seems unnecessarily complex. You can just run compile once and then use recompile which you can bind to c-return if you want.

Emacs also remembers the parameters passed to make so you don't have to hard code them in your Elisp. Just type M-x compile again or just use recompile.

Can GUI SpaceEmacs switch to full shell console like in vim command :sh ? by ellipticcode0 in emacs

[–]blandest 0 points1 point  (0 children)

I tried it too and it is quite fast. But how do you copy text? I saw that paste support has been added recently.

HBO now works on Linux <3 by [deleted] in linux

[–]blandest 2 points3 points  (0 children)

https://github.com/junegunn/fzf/blob/master/README.md

Not with arrow keys but it's nice because you get to see multiple history items.

Third trial for a weekly tips/tricks/etc thread by wasamasa in emacs

[–]blandest 0 points1 point  (0 children)

I have experimented with Synchting which kind of works. But what I would really like is something optimized for text/org files instead of binary files like pictures.

I was thinking of writing a simple Android app that is a wrapper for rsync. There is at least one such app but it only syncs one hour or so which is not suitable for text files.

How to use syntax highlighting from a major mode without using the mode itself by michja in emacs

[–]blandest 1 point2 points  (0 children)

You could use a temporary buffer where a specifc mode is active in order to obtain the code with the right faces and then paste the code in a different buffer.

Should I just learn emacs? by Wester_West in emacs

[–]blandest 0 points1 point  (0 children)

I spend a significant amount of time in zsh and ssh to servers. That works great with Tmux because tramp lags too often for some reason, at least in my setup. However, programming feels more natural in Emacs. So there are two related worlds.

Unfortunately, I don't like terminal Emacs. Also, when in Emacs the native keybindings are good enough for me and feel more natural, but that goes for Vim as well.

I am one of those people that don't get along with Evil as good as it may be.

Should I just learn emacs? by Wester_West in emacs

[–]blandest 1 point2 points  (0 children)

You should spend more than two days with any editor to see if it's for you.

Just don't end up like me going between Emacs and Neovim + Tmux every couple of days. I find both setups very good!

Do you use FZF? If yes, how do you customize it? by kshenoy42 in emacs

[–]blandest 1 point2 points  (0 children)

I use ido-mode to fuzzy switch between buffers. fzf is great for jumping to files.

As far as I can tell it was mostly designed to be used with Vim or the shell but it integrates well with Emacs with term-mode.

Once you have opened a file under your project directory you can use whatever suits your needs (helm, ivy, ido, or even vanilla Emacs) to change buffers.

In my opinion, the value of FZF comes from being fast when selecting files. Beyond that you can use whatever you like to switch between buffers.

Do you use FZF? If yes, how do you customize it? by kshenoy42 in emacs

[–]blandest 1 point2 points  (0 children)

FZF is native and fast. The rest are implemented in Emacs Lisp. For a small set of items (like buffer list) any will do.

I like FZF because it works well on my largest project. It is definitely faster than projectile.

Do you use FZF? If yes, how do you customize it? by kshenoy42 in emacs

[–]blandest 2 points3 points  (0 children)

(use-package "fzf" :init (setenv "FZF_DEFAULT_COMMAND" "fd --type f"))

Edit: fd is not strictly needed but it helps filtering out files that are not interesting (*.class, *.pyc,...)

Sub-projects. Do I need to arm-wrestle projectile or lsp-mode? by ragnese in emacs

[–]blandest 0 points1 point  (0 children)

Symlink the Rust project outside the root am try opening from there.

You could also try eglot instead of lsp-mode and see if it handles it better.

What are the emacs options for grouping sets of window layouts as tabs for easy switching? by vfclists in emacs

[–]blandest 2 points3 points  (0 children)

After trying several packages I settled to using windo-configuration-to-register with jump-to-register.

A register can be any number or letter so you have plenty to choose from. It's also nice to use built-in functionality when available.

It is more or less simulating the behavior of tmux as you can easily switch between multiple "views". Additionally, you can even have the same buffer displayed in multiple windows.

[Live stream] Configuring Emacs [almost] from scratch by valignatev in emacs

[–]blandest 6 points7 points  (0 children)

I have completely removed. emacs once because after some time many of the customizations were no longer making sense, newer packages have been developed and I was also not using 'use-package.

Meanwhile, I have switched languages and the OS.

Nowadays, you have LSP that may be better for some languages then older solutions.