Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Activity for mcp
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: Reset all buffer variables to default in Emacs `M-x kill-local-variable` `RET` `c-basic-offset` seems to work, but only temporarily. If I save, and close Emacs, and revisit the file, the changes do not persist. I that in an affected directory, each file must be visited and a permanent version of this must be performed. Not ideal. (more) |
— | 6 months ago |
Question | — |
Reset all buffer variables to default in Emacs Question How do you clear local variable customizations in buffer? In other words, how do you reset all variables to default? Use case This may be useful in instances where you `M-x customize-variable` and want to force those changes to persist on an open buffer. If I have edited a `.c` f... (more) |
— | 7 months ago |
Question | — |
How to view history of tabs sent to devices in Firefox I will often send tabs to other devices for later viewing and sometimes these tabs get lost between power-ons or swiped away if I don't open them immediately. Is there a place where I can view the history of sent tabs and the path they traveled? (more) |
— | 7 months ago |
Question | — |
How to update log diff buffer with cursor MWE Using magit: 1. Open log buffer: `ll`. 2. Open a commit diff: `ENT`. 3. Go back to log buffer without closing diff: `window-other`. Question Starting from the MWE above, is there a way to have the diff buffer update according to which commit your cursor is on? This would be very conv... (more) |
— | about 1 year ago |
Question | — |
How to indent list items in Vim Problem How do I indent a list item in Vim the following way? Ideally I want this to happen automatically upon wrap, but will settle for something like `ESC TAB` doing the trick. Have ```txt This is a list: 1. This is a list item. 2. This is a long list item that I am wrapping at 72 charact... (more) |
— | about 1 year ago |
Question | — |
Change indent width in scad-mode MWE ```scad translate() square(); ``` Problem I'd like to set the number of spaces per indent in `scad-mode` to `2`. When I press tab on the second line in the MWE, it should result in: ```scad translate() square(); ``` Tried Tried setting `tab-width`, `c-basic-offset`, `sta... (more) |
— | over 1 year ago |
Question | — |
How to make background transparent and trim to content Question Is there a way in `grafx2` to make the background transparent and trim to content? This could be done during save. My process now when making images for documents is: 1. Make image in `grafx2`. 2. Open image in `gimp`. 3. Add alpha layer. 4. Select background by color. 5. Clear (... (more) |
— | over 1 year ago |
Answer | — |
A: How to redraw screen putting specific line at top without moving cursor The best I've come up with since, when the line in question is often returned to, is to go mark the line you want up top with `mz` and the line you are working on with `mw`. Returning your workspace to order then becomes: `'z` `zt` `'w`. (more) |
— | over 1 year ago |
Question | — |
How to redraw screen putting specific line at top without moving cursor MWE ```txt 5 4 3 2 1 0 ``` Go to the end of the file: `G`. Question Using spacemacs, how do I put the line with `3` at the top of the screen without moving the cursor? With moving the cursor that would be: `3k` `zt` `G`. Notes I use relative line numbering which explains the or... (more) |
— | over 1 year ago |
Question | — |
How to make selection and overwrite from register all from ex mode MWE ```txt line 1 line 2 line 3 line 4 line 5 line 6 line 7 ``` 1. Go to "line 4": `/line 4` `ENT`. 2. Delete into register: `dd`. 3. Replace everything with register using only ex mode. (Non-ex equivalent: `gg` `V` `G` `p`.) ```txt line 4 ``` Problem I am uncertain how to proc... (more) |
— | over 1 year ago |
Question | — |
How to copy files preserving one directory up Have ```sh mkdir -p d1/d1sd1/ d2/d2sd1/ touch d1/d1sd1/f1.txt d2/d2sd1/f1.txt ``` ```sh . ├── d1 │ └── d1sd1 │ └── f1.txt └── d2 └── d2sd1 └── f1.txt 4 directories, 2 files ``` Want ```sh . ├── d1 │ └── d1sd1 │ └── f1.txt ├── d1sd1 │ └── f1.tx... (more) |
— | over 1 year ago |
Question | — |
How to track down target atom for svg to pass to xclip Background The xclip manual mentions use of targets: > -t, -target > specify a particular data format using the given target atom. With -o the special target atom name > "TARGETS" can be used to get a list of valid target atoms for this selection. For more info... (more) |
— | over 1 year ago |
Question | — |
What in the HTML is preventing CutyCapt from capturing Altair output Question I am using Altair to generate plots using python and pandas. What is preventing CutyCapt from capturing the plot in the html output? CutyCapt writes a blank png. MWE I am outputting the .html with: ```py import pandas as pd import numpy as np import altair as alt df = pd.Dat... (more) |
— | over 1 year ago |
Question | — |
What is the magit equivalent of git switch branch? What is the magit equivalent of `git switch branch`? I'm particularly interested in the situation where you cloned a repo, and want to checkout a remote branch locally. From the commandline that usually looks like: ```sh $ git clone repo $ cd repo $ git branch -a remotes/origin/branch ... (more) |
— | almost 2 years ago |
Question | — |
How to add vertical line in the middle of two marks on image Have This .png image of a plot: Busy Bar Graph Want To add vertcal lines between the groupings: `(0, 1, 2) LINE (3, 4, 5) LINE (6, 7, 8)` I want to place the lines exactly in the middle of the grouping boundaries. The solution I envision is marking (``) the vertical edges of the bars... (more) |
— | almost 2 years ago |
Question | — |
How to jump to original mark after overwriting MWE In Vim: 1. `mm`. 2. `o ESC` 3. `mm` (by accident, meant `mn`). Question How do I jump to the original mark `m` set in action 1.? Edit I'm sorry, what I meant was you issue `mm` when you meant `'m`. (It almost happened to me again.) Both are legitimate. (more) |
— | almost 2 years ago |
Answer | — |
A: How to blockquote region in Emacs In `markdown-mode`, `markdown-blockquote-region` does the trick! Bound to `SPC m x Q` or the shortcut `, x Q` in spacemacs. (more) |
— | almost 2 years ago |
Question | — |
How to blockquote region in Emacs Question Is there a command in emacs for "email quoting" an autofilled paragraph? Have ```txt Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec facilisis facilisis, est dui fermentum leo, quis tempor ligula erat quis odio. Nunc porta vulputate tellus. Nunc rutrum turpis sed... (more) |
— | almost 2 years ago |